-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (41 loc) · 994 Bytes
/
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
name: CI
on:
push:
branches:
- 'v*.*.x'
tags:
- 'v*'
pull_request:
branches:
- 'v*.*.x'
# Do a periodic build (every Monday at 0600) to ensure integrity
schedule:
- cron: '0 6 * * 1'
jobs:
build:
name: Run
strategy:
matrix:
include:
- { os: macos-latest, dc: ldc-latest }
- { os: ubuntu-latest, dc: dmd-latest }
- { os: ubuntu-latest, dc: ldc-latest }
- { os: windows-latest, dc: dmd-latest }
- { os: windows-latest, dc: ldc-latest }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
# For codecov
fetch-depth: 2
- uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: 'Build & Test'
shell: bash
run: |
dub test -b unittest-cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
flags: unittests