-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (32 loc) · 1 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
# Run Vibe.d's test suite on all three platforms
name: CI
on: [push, pull_request]
jobs:
main:
name: Run
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
dc: [ dmd-latest, dmd-2.094.2, dmd-2.089.1, dmd-2.084.1, ldc-1.24.0, ldc-1.21.0, ldc-1.17.0 ]
include:
# Default
- { parts: 'builds,unittests,examples,tests', extra_dflags: '' }
# Custom part for coverage
- { dc: dmd-2.094.2, parts: 'unittests,tests', extra_dflags: "-cov -version=VibedSetCoverageMerge" }
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
- name: Prepare compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: '[POSIX] Run tests'
env:
PARTS: builds,unittests,examples,tests
run: |
./travis-ci.sh
- name: '[DMD] Upload coverage to Codecov'
if: matrix.dc == 'dmd-latest'
uses: codecov/codecov-action@v1