2019-09-17 15:58:13 +02:00
|
|
|
name: CI
|
2022-10-16 06:55:23 +02:00
|
|
|
on:
|
|
|
|
push:
|
2023-11-10 15:56:52 +01:00
|
|
|
branches: [main]
|
2022-10-16 06:55:23 +02:00
|
|
|
pull_request:
|
2022-10-03 23:34:10 +02:00
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
2023-05-15 05:19:12 +02:00
|
|
|
|
|
|
|
env:
|
2023-07-03 14:23:34 +02:00
|
|
|
# We only install Chromium manually
|
2023-05-15 05:19:12 +02:00
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
|
|
|
|
|
2019-09-17 15:58:13 +02:00
|
|
|
jobs:
|
|
|
|
Tests:
|
|
|
|
runs-on: ${{ matrix.os }}
|
2021-04-16 19:22:18 +02:00
|
|
|
timeout-minutes: 15
|
2019-09-17 15:58:13 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-04-13 15:46:34 +02:00
|
|
|
include:
|
2023-11-10 16:46:40 +01:00
|
|
|
- node-version: 18
|
2023-04-13 15:46:34 +02:00
|
|
|
os: windows-latest
|
2023-11-10 16:46:40 +01:00
|
|
|
- node-version: 18
|
2023-05-08 16:30:24 +02:00
|
|
|
os: macOS-latest
|
2023-04-13 15:46:34 +02:00
|
|
|
- node-version: 18
|
|
|
|
os: ubuntu-latest
|
2023-04-19 10:23:14 +02:00
|
|
|
- node-version: 20
|
|
|
|
os: ubuntu-latest
|
2019-09-17 15:58:13 +02:00
|
|
|
steps:
|
2022-10-13 15:51:06 +02:00
|
|
|
- uses: actions/checkout@v3
|
2023-04-18 18:18:00 +02:00
|
|
|
- uses: pnpm/action-setup@v2.2.4
|
2022-10-13 15:51:06 +02:00
|
|
|
- uses: actions/setup-node@v3
|
2021-07-08 18:53:58 +02:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2023-04-18 18:18:00 +02:00
|
|
|
cache: pnpm
|
|
|
|
- run: pnpm install --frozen-lockfile
|
2023-05-15 05:19:12 +02:00
|
|
|
- run: pnpm playwright install chromium
|
2023-05-17 21:00:20 +02:00
|
|
|
- run: pnpm test
|
2021-07-08 18:53:58 +02:00
|
|
|
env:
|
|
|
|
CI: true
|
2019-10-12 00:49:11 +02:00
|
|
|
Lint:
|
|
|
|
runs-on: ubuntu-latest
|
2021-04-16 19:22:18 +02:00
|
|
|
timeout-minutes: 5
|
2019-10-12 00:49:11 +02:00
|
|
|
steps:
|
2022-10-13 15:51:06 +02:00
|
|
|
- uses: actions/checkout@v3
|
2023-04-18 18:18:00 +02:00
|
|
|
- uses: pnpm/action-setup@v2.2.4
|
2022-10-13 15:51:06 +02:00
|
|
|
- uses: actions/setup-node@v3
|
2021-07-08 18:53:58 +02:00
|
|
|
with:
|
2023-11-10 16:46:40 +01:00
|
|
|
node-version: 18
|
2023-04-18 18:18:00 +02:00
|
|
|
cache: pnpm
|
2023-05-27 21:49:27 +02:00
|
|
|
- run: 'pnpm i && pnpm check && pnpm lint'
|