Skip to content

Commit

Permalink
Test with multiple OS
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed Jul 10, 2024
1 parent 4e510d1 commit 6fd785f
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ jobs:
test-latex:
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
name: LaTeX test
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
config: ['luatex-1', 'luatex-2', 'pdftex-1', 'pdftex-2', 'doc']
steps:

Expand Down Expand Up @@ -53,7 +55,7 @@ jobs:
if: ${{ matrix.config == 'doc' }}
run: l3build doc

- name: Test LaTeX package
- name: Run l3build
if: ${{ matrix.config != 'doc' }}
run: l3build check --config tests/latex/config-${{ matrix.config }}

Expand All @@ -68,8 +70,12 @@ jobs:

test-texlua:
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
name: Lua test (texlua)
runs-on: ubuntu-latest
name: texlua on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:

- name: Checkout
Expand Down Expand Up @@ -108,10 +114,12 @@ jobs:

test-lua:
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
name: Lua Test
runs-on: ubuntu-latest
name: Lua ${{ matrix.luaVersion }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
luaVersion: ["5.3", "5.4"]
steps:

Expand Down

0 comments on commit 6fd785f

Please sign in to comment.