-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.12 KB
/
Copy pathcode_validation.yml
File metadata and controls
53 lines (44 loc) · 1.12 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
name: code_validation
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validation:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- name: typecheck
command: pnpm run typecheck
- name: lint
command: pnpm run lint
- name: test
command: pnpm run test:run
steps:
- name: Checkout code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Setup environment
uses: ./.github/actions/setup-environment
- name: Run ${{ matrix.name }}
run: ${{ matrix.command }}
all-green:
runs-on: ubuntu-latest
if: always()
needs:
- validation
steps:
- name: Check all CI jobs status
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # release/v1
with:
jobs: ${{ toJSON(needs) }}