Skip to content

Commit

Permalink
Run GitHub Actions tests on Ubuntu and Windows
Browse files Browse the repository at this point in the history
Windows is excluded from Percy and package export tests
(cherry picked from commit 6b531f6)
  • Loading branch information
colinrotherham committed Jul 24, 2023
1 parent 30a4a99 commit 6f5435b
Showing 1 changed file with 33 additions and 8 deletions.
41 changes: 33 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,19 @@ concurrency:
jobs:
install:
name: Install
runs-on: ubuntu-latest
runs-on: ${{ matrix.runner }}

env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true

strategy:
fail-fast: false

matrix:
runner:
- ubuntu-latest
- windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v3.5.3
Expand All @@ -36,9 +44,17 @@ jobs:

build:
name: Build
runs-on: ubuntu-latest
runs-on: ${{ matrix.runner }}
needs: [install]

strategy:
fail-fast: false

matrix:
runner:
- ubuntu-latest
- windows-latest

steps:
- name: Checkout
uses: actions/checkout@v3.5.3
Expand All @@ -54,14 +70,18 @@ jobs:
run: npm run build:types

lint:
name: ${{ matrix.task.description }}
runs-on: ubuntu-latest
name: ${{ matrix.task.description }} (${{ matrix.runner }})
runs-on: ${{ matrix.runner }}
needs: [install]

strategy:
fail-fast: false

matrix:
runner:
- ubuntu-latest
- windows-latest

task:
- description: Lint Sass
name: lint-scss
Expand Down Expand Up @@ -101,7 +121,7 @@ jobs:
run: ${{ matrix.task.run }}

test:
name: ${{ matrix.task.description }}
name: ${{ matrix.task.description }} (${{ matrix.runner }})
runs-on: ${{ matrix.runner }}
needs: [install, build]

Expand All @@ -116,6 +136,7 @@ jobs:
matrix:
runner:
- ubuntu-latest
- windows-latest

task:
- description: Nunjucks macro tests
Expand Down Expand Up @@ -176,19 +197,23 @@ jobs:
- name: Save test coverage
uses: actions/upload-artifact@v3.1.2
with:
name: ${{ matrix.task.description }} coverage
name: ${{ matrix.task.description }} coverage (${{ matrix.runner }})
path: coverage
if-no-files-found: ignore

verify:
name: ${{ matrix.task.description }}
runs-on: ubuntu-latest
name: ${{ matrix.task.description }} (${{ matrix.runner }})
runs-on: ${{ matrix.runner }}
needs: [install, build]

strategy:
fail-fast: false

matrix:
runner:
- ubuntu-latest
- windows-latest

task:
- description: Verify package build
name: test-build-package
Expand Down

0 comments on commit 6f5435b

Please sign in to comment.