Skip to content

Add basic CI

Add basic CI #1

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
name: Test on ${{ matrix.os }} - Lesson ${{ matrix.lesson }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
shell: bash
test_script: test.sh
- os: macos-latest
shell: bash
test_script: test.sh
- os: windows-latest
shell: cmd
test_script: test.bat
lesson: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
env:
CONAN_HOME: ${{ github.workspace }}/.conan_home_${{ matrix.lesson }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Conan
uses: conan-io/setup-conan@latest
- name: Run test for lesson ${{ matrix.lesson }}
shell: ${{ matrix.shell }}

Check failure on line 38 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 38, Col: 14): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.shell
run: |
cd lesson${{ matrix.lesson }}
${{ matrix.test_script }}