CI: update setup-dlang action to v2 #29
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: | |
pull_request: | |
paths-ignore: | |
- "*.md" | |
- ".editorconfig" | |
- ".gitignore" | |
- "LICENSE" | |
push: | |
branches: | |
- "main" | |
paths-ignore: | |
- "*.md" | |
- ".editorconfig" | |
- ".gitignore" | |
- "LICENSE" | |
jobs: | |
lint: | |
name: Run `dub lint` | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dlang-community/setup-dlang@v2 | |
- name: Run lint | |
run: dub lint -q | |
test: | |
name: Run `dub test` | |
strategy: | |
matrix: | |
dc: [dmd-latest, ldc-latest] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dlang-community/setup-dlang@v2 | |
with: | |
compiler: ${{ matrix.dc }} | |
- name: Run test | |
run: dub test -q |