-
Notifications
You must be signed in to change notification settings - Fork 52
37 lines (35 loc) · 962 Bytes
/
ci.yml
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
33
34
35
36
37
name: CI
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
name: Check quality
runs-on: ubuntu-latest
strategy:
matrix:
command: ['lint', 'lint:attw', 'lint:monorepo', 'lint:pub', 'test', 'test:tsd', 'type:check', 'build']
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8.12.0
- uses: actions/setup-node@v4
with:
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
node-version-file: '.nvmrc'
- run: pnpm install --frozen-lockfile
- if: matrix.command == 'test'
run: pnpm exec playwright install
- name: Run commands
run: pnpm ${{ matrix.command }}