-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (35 loc) · 1 KB
/
main.yml
File metadata and controls
35 lines (35 loc) · 1 KB
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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Run
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
dc: [dmd-latest, ldc-latest]
exclude:
- os: macos-latest
dc: dmd-latest # dmd is not available on macOS ARM runners
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Requiried for codecov action
fetch-depth: 2
- uses: dlang-community/setup-dlang@0a7469b93f791d83f30932c6fd105796c6966e20 # v2.0.0
with:
compiler: ${{ matrix.dc }}
- name: "Build & Test"
shell: bash
run: |
dub test --compiler=$DC -b unittest-cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
with:
flags: unittests