-
Notifications
You must be signed in to change notification settings - Fork 29
132 lines (106 loc) · 3.58 KB
/
check.yml
File metadata and controls
132 lines (106 loc) · 3.58 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
122
123
124
125
126
127
128
129
130
131
132
name: Check
on:
pull_request:
push:
branches:
- main
- next
env:
TURBO_ENV_MODE: loose
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/.cache/ms-playwright
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
id-token: write # used to upload artifacts to codecov
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 2 # see https://docs.codecov.com/docs/environment-specific-requirements#github-actions
- name: Setup Node.js and Install Dependencies
uses: ./.github/actions/setup-node-and-install
- name: Build
run: pnpm turbo run build
build-storybook:
name: Build internal Storybook
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Node.js and Install Dependencies
uses: ./.github/actions/setup-node-and-install
- name: Build
run: pnpm turbo run build-storybook
test:
name: Test
runs-on: ubuntu-latest
permissions:
id-token: write # used to upload artifacts to codecov
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 2 # see https://docs.codecov.com/docs/environment-specific-requirements#github-actions
- name: Setup Node.js and Install Dependencies
uses: ./.github/actions/setup-node-and-install
- name: Setup Playwright
uses: ./.github/actions/setup-playwright
- name: Run tests with coverage
run: pnpm turbo run test:ci
- name: Upload coverage to Codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
with:
use_oidc: true
fail_ci_if_error: true
files: |
coverage/lcov.info
- name: Upload test results to Codecov
uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1
if: always()
with:
use_oidc: true
fail_ci_if_error: true
files: |
test-report.junit.xml
typecheck:
name: Type check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Node.js and Install Dependencies
uses: ./.github/actions/setup-node-and-install
- name: Run type checking
run: pnpm turbo run typecheck
publint:
name: Publint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Node.js and Install Dependencies
uses: ./.github/actions/setup-node-and-install
- name: Run linting
run: pnpm turbo run publint
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Node.js and Install Dependencies
uses: ./.github/actions/setup-node-and-install
- name: Run linting
run: pnpm turbo run lint:ci
format-check:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Node.js and Install Dependencies
uses: ./.github/actions/setup-node-and-install
- name: Check formatting
run: pnpm turbo run format:check