Switch to pnpm (#36)

This commit is contained in:
Ollie Taylor
2023-02-26 15:40:03 +00:00
committed by GitHub
parent 084ed9fbbd
commit 47aabda96d
7 changed files with 3533 additions and 3189 deletions
+24 -22
View File
@@ -1,30 +1,32 @@
name: 'CI'
on:
pull_request:
push:
branches:
- '**'
- main
pull_request:
env:
# we call `pnpm playwright install` instead
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
# cancel in-progress runs on new commits to same PR (gitub.event.number)
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: use node v16.x
uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2.2.4
- uses: actions/setup-node@v3
with:
node-version: 16.x
- name: yarn install
uses: borales/actions-yarn@v4
with:
cmd: install --frozen-lockfile
- name: prettier lint
uses: borales/actions-yarn@v4
with:
cmd: lint
- name: svelte check
uses: borales/actions-yarn@v4
with:
cmd: check
node-version: '16.x'
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
- run: pnpm run check