Skip to content

Recognise Merge:auto-merge label & friends #119

Recognise Merge:auto-merge label & friends

Recognise Merge:auto-merge label & friends #119

Workflow file for this run

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