Skip to content

Create a testing workflow #2

Create a testing workflow

Create a testing workflow #2

Workflow file for this run

name: Run all tests
on: [push, pull_request]
jobs:
test:
name: DUB tests
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest, macos-12]
dc: [dmd, ldc, ldc-1.28.1 ]
dub: [dub, redub]
exclude:
- { os: macos-latest, dc: dmd }
- { os: macos-12, dc: dmd }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install D compiler
uses: dlang-community/setup-dlang@v2
with:
compiler: ${{ matrix.dc }}
- name: Install Redub
if: matrix.dub === 'redub'

Check failure on line 26 in .github/workflows/d.yml

View workflow run for this annotation

GitHub Actions / Run all tests

Invalid workflow file

The workflow is not valid. .github/workflows/d.yml (Line: 26, Col: 13): Unexpected symbol: '='. Located at position 14 within expression: matrix.dub === 'redub'
shell: bash
run: |
dub fetch redub
echo "DUB=dub run redub" >> "$GITHUB_ENV"
- name: Run tests
shell: bash
run: $DUB test
- name: Compile tour
shell: bash
run: $DUB build :tour