-
Notifications
You must be signed in to change notification settings - Fork 70
121 lines (92 loc) · 2.59 KB
/
quality.yml
File metadata and controls
121 lines (92 loc) · 2.59 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: Quality
on:
push:
branches:
- 'master'
- '!changeset-release/**'
pull_request:
jobs:
lockfile:
if: ${{ !startsWith(github.ref, 'refs/heads/changeset-release/') }}
name: Lockfile
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/ci
# The shared install action does not respect the
# `--frozen-lockfile` flag, so we need to run it here.
- name: Install with lockfile
run: pnpm install --frozen-lockfile
linting:
if: ${{ !startsWith(github.ref, 'refs/heads/changeset-release/') }}
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/ci
# Needed for ESLint as otherwise imports are not resolved
- name: Build CLIs
run: pnpm build:clis
- name: Lint
run: pnpm lint
type-checking:
if: ${{ !startsWith(github.ref, 'refs/heads/changeset-release/') }}
name: Type checking
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/ci
- name: TypeScript
run: pnpm typecheck:ts
- name: Flow
run: pnpm typecheck:flow
testing:
if: ${{ !startsWith(github.ref, 'refs/heads/changeset-release/') }}
name: Testing
needs: [lockfile, linting, type-checking]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/ci
- name: Build
run: pnpm build
- uses: oNaiPs/secrets-to-env-action@v1
with:
secrets: ${{ toJSON(secrets) }}
- name: Test (with coverage)
run: pnpm test:coverage:ci
- name: Integration tests
run: pnpm test:integration
regression-testing:
if: ${{ !startsWith(github.ref, 'refs/heads/changeset-release/') }}
name: Regression Testing
needs: [testing]
runs-on: ubuntu-latest
strategy:
matrix:
version: [18, 20]
fail-fast: true
max-parallel: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/ci
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.version }}
- name: Build
run: pnpm build
- uses: oNaiPs/secrets-to-env-action@v1
with:
secrets: ${{ toJSON(secrets) }}
- name: Integration tests
run: pnpm test:integration