-
Notifications
You must be signed in to change notification settings - Fork 162
93 lines (78 loc) · 2.52 KB
/
verifications.yml
File metadata and controls
93 lines (78 loc) · 2.52 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
name: Verifications
on:
workflow_call:
permissions:
id-token: write # OIDC auth for Codecov
jobs:
code-validation:
name: 'Code Validation: ${{ matrix.validation-script }}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
validation-script:
[
'lint',
'type-check',
'format:check',
'validate-gen-all',
'bundle-check',
]
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install pnpm
uses: pnpm/action-setup@903f9c1a6ebcba6cf41d87230be49611ac97822e # v6.0.3
- name: Set up Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
cache: 'pnpm'
node-version-file: '.nvmrc'
- name: Install dependencies
run: pnpm install
- name: Run script
run: pnpm run ${{ matrix.validation-script }}
tests:
name: Tests (Node v${{ matrix.node }} - ESLint v${{ matrix.eslint }})
runs-on: ubuntu-latest
timeout-minutes: 3
strategy:
fail-fast: false
matrix:
node: [18, 20, 21, 22, 23, 24]
eslint: [8, 9, 10]
exclude:
- node: 18
eslint: 10
- node: 21
eslint: 10
- node: 23
eslint: 10
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install pnpm
uses: pnpm/action-setup@903f9c1a6ebcba6cf41d87230be49611ac97822e # v6.0.3
- name: Set up Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
cache: 'pnpm'
node-version: ${{ matrix.node }}
- name: Install dependencies
run: pnpm install
- name: Install ESLint v${{ matrix.eslint }}
run: pnpm add eslint@${{ matrix.eslint }}
- name: Run tests
run: pnpm run test:ci
- name: Upload tests coverage report
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
if: ${{ !cancelled() && github.event.action != 'closed' }}
with:
use_oidc: true
report_type: 'coverage'
- name: Upload tests result report
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
if: ${{ !cancelled() && github.event.action != 'closed' }}
with:
use_oidc: true
report_type: 'test_results'