-
-
Notifications
You must be signed in to change notification settings - Fork 50
81 lines (71 loc) · 1.96 KB
/
unittest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Run Unittests
on:
push:
branches:
- master
pull_request:
jobs:
dubtest:
name: Dub Tests
strategy:
fail-fast: false
matrix:
# ubuntu / linux must run on kinda old linux for glibc compatibility!
os: [ubuntu-20.04, windows-latest, macos-latest]
dc: [dmd-latest, ldc-latest]
exclude:
- os: windows-latest
dc: dmd-latest
- os: macos-latest
dc: dmd-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
timeout-minutes: 5
with:
compiler: ${{ matrix.dc }}
- name: Run workspace-d tests
run: dub test :workspace-d
timeout-minutes: 30
env:
MACOSX_DEPLOYMENT_TARGET: '10.12'
- name: serialization tests
run: dub test :protocol
timeout-minutes: 10
env:
# shouldn't break other OSes
MACOSX_DEPLOYMENT_TARGET: '10.12'
- name: LSP tests
run: dub test :lsp
timeout-minutes: 10
env:
# shouldn't break other OSes
MACOSX_DEPLOYMENT_TARGET: '10.12'
- name: serverbase tests
run: dub test :serverbase
timeout-minutes: 10
env:
MACOSX_DEPLOYMENT_TARGET: '10.12'
- name: build minimal server
run: dub build --root=null_server
timeout-minutes: 10
env:
MACOSX_DEPLOYMENT_TARGET: '10.12'
- name: test minimal server
run: dub run --root=null_server_test
timeout-minutes: 10
env:
MACOSX_DEPLOYMENT_TARGET: '10.12'
- name: Run tests
run: dub test
timeout-minutes: 30
env:
MACOSX_DEPLOYMENT_TARGET: '10.12'
- name: Run standalone tests
run: ./runtests.sh
working-directory: ./test
timeout-minutes: 30
env:
MACOSX_DEPLOYMENT_TARGET: '10.12'