Recognise Merge:auto-merge
label & friends
#119
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [ push, pull_request ] | |
jobs: | |
main: | |
name: Run | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-20.04 ] | |
dc: [ dmd-2.100.2, ldc-1.30.0 ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Prepare compiler | |
uses: dlang-community/setup-dlang@v1 | |
with: | |
compiler: ${{ matrix.dc }} | |
- uses: actions/checkout@v2 | |
- name: Test | |
if: matrix.dc != 'ldc-latest' | |
run: | | |
# Tests are neither random- nor parallelizable atm., so use a --single serial thread. | |
dub test --compiler=$DC -- --single --trace --debug | |
- name: Test with coverage | |
if: matrix.dc == 'ldc-latest' | |
env: | |
COVERAGE: true | |
run: | | |
# Mirrot the previous `run` step but with `--build=unittest-cov` | |
dub test --compiler=$DC --build=unittest-cov -- --single --trace --debug | |
- name: Upload code coverage | |
if: matrix.dc == 'ldc-latest' | |
uses: codecov/codecov-action@v1 |