-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (45 loc) · 1.32 KB
/
ci.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
name: CI Pipeline
on: [push, pull_request]
jobs:
unit-tests:
name: Unit tests
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macOS-11]
dc: [dmd-2.098.1, ldc-1.28.1]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install D compiler
uses: dlang-community/[email protected]
with:
compiler: ${{ matrix.dc }}
- name: Unit tests
run: |
dub build
dub test
dub run --root mir-integration-example
- uses: codecov/[email protected]
integration-test:
name: Integration tests
strategy:
matrix:
os: [ubuntu-20.04]
dc: [dmd-2.098.1, ldc-1.28.1]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install influxdb libevent-dev
- name: Integration tests
run: |
sudo service influxdb start
cd integration
dub run --build=unittest -c integration
dub run --build=unittest -c integration-mir