Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: add matrix to all jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-van-eekelen committed Dec 11, 2023
1 parent 657a410 commit 758df98
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,23 @@ on: pull_request

jobs:
init:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
os: [ubuntu-22.04]
node-version: [18.18.2]
steps:
- name: Cancel previous workflow
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

lint:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
os: [ubuntu-22.04]
node-version: [18.18.2]
needs: init
steps:
- name: Check out repository
Expand All @@ -38,10 +46,10 @@ jobs:
run: yarn lint

compile:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-22.04]
node-version: [18.18.2]
needs: init
steps:
Expand Down Expand Up @@ -92,7 +100,11 @@ jobs:
run: yarn typecheck

test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
os: [ubuntu-22.04]
node-version: [18.18.2]
needs: init
steps:
- name: Check out repository
Expand Down Expand Up @@ -127,7 +139,11 @@ jobs:
run: yarn test:ci

docker:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
os: [ubuntu-22.04]
node-version: [18.18.2]
needs: init
if: contains(github.head_ref, 'release')
steps:
Expand Down

0 comments on commit 758df98

Please sign in to comment.