comp1 #100
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: codecov | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
LANG: "en_US.UTF-8" | |
jobs: | |
Test: | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
arch: | |
- 'x86_64' | |
compiler: | |
- 'ldc-latest' | |
- 'dmd-latest' | |
steps: | |
- name: Checkout master branch | |
uses: actions/checkout@v3 | |
- name: Install Dependencies - Ubuntu | |
if: startsWith(matrix.os,'ubuntu') | |
run: | | |
sudo apt-get -yq install libx11-dev | |
- name: Install compiler | |
uses: dlang-community/setup-dlang@v1 | |
with: | |
compiler: ${{ matrix.compiler }} | |
# Disabled for false alarms on const, and bugs in its module exclusion. | |
# - name: D-Scanner | |
# run: dub fetch dscanner && dub run dscanner -- --styleCheck source bin | |
- name: Test | |
run: | | |
dub test -b=unittest-cov | |
- uses: codecov/codecov-action@v3 | |
Skip: | |
if: "contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Skip CI 🚫 | |
run: echo skip CI |