Skip to content

Commit

Permalink
ci: run CI workflow on Node version from matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala committed Sep 18, 2024
1 parent ba2945a commit c504a6f
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
name: ci

on:
push:
branches:
- main
pull_request:
branches:
- main
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test-fixtures:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
test-fixtures:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [20]

strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node: [18]
runs-on: ${{ matrix.os }}
timeout-minutes: 10

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: corepack enable
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: corepack enable
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Install Playwright
run: pnpm playwright-core install chromium
- name: Install Playwright
run: pnpm playwright-core install chromium

- name: Build (stub)
run: pnpm dev:prepare
- name: Test (fixtures)
run: pnpm test
- name: Build (stub)
run: pnpm dev:prepare

- name: Test (fixtures)
run: pnpm test

0 comments on commit c504a6f

Please sign in to comment.