0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-25 17:19:22 +01:00
svelte/.github/workflows/ci.yml

51 lines
1.2 KiB
YAML
Raw Normal View History

2019-09-17 15:58:13 +02:00
name: CI
on:
push:
2023-11-10 15:56:52 +01:00
branches: [main]
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
env:
# We only install Chromium manually
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
2019-09-17 15:58:13 +02:00
jobs:
Tests:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
2019-09-17 15:58:13 +02:00
strategy:
matrix:
2023-04-13 15:46:34 +02:00
include:
- node-version: 18
2023-04-13 15:46:34 +02:00
os: windows-latest
- node-version: 18
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
with:
node-version: ${{ matrix.node-version }}
2023-04-18 18:18:00 +02:00
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm playwright install chromium
- run: pnpm test
env:
CI: true
2019-10-12 00:49:11 +02:00
Lint:
runs-on: ubuntu-latest
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
with:
node-version: 18
2023-04-18 18:18:00 +02:00
cache: pnpm
- run: 'pnpm i && pnpm check && pnpm lint'