-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (52 loc) · 1.35 KB
/
quality.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: ci
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
typescript:
name: typescript
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: checkout
uses: actions/checkout@v3
- name: Install
uses: ./.github/composite-actions/install
- name: lint
run: pnpm -r lint
- name: type-check
run: pnpm -r type-check
- name: prettier
run: pnpm prettier -c .
- name: build
run: pnpm -r build
- name: test
run: pnpm -r test
playwright:
name: playwright
runs-on: ubuntu-latest
if: false
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
test:
- 'test:e2e:production'
- 'test:e2e:development'
steps:
- name: checkout
uses: actions/checkout@v3
- name: Install
uses: ./.github/composite-actions/install
- name: get playwright version
id: pw
run: echo "version=$(cat apps/nextjs/package.json | jq -r '.devDependencies."@playwright/test"')" >> $GITHUB_OUTPUT
- name: install playwright
run: pnpx playwright@${{ steps.pw.outputs.version }} install
- name: test
run: pnpm -r ${{ matrix.test }}