-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (25 loc) · 807 Bytes
/
Copy pathci.yml
File metadata and controls
32 lines (25 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
on:
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
task: [oxlint, oxfmt, build, test]
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
- run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: mise run install --frozen-lockfile
- name: Install Playwright Browsers
if: matrix.task == 'test'
run: pnpm exec playwright install --with-deps chromium
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 0
- run: mise run ${{ matrix.task }}