-
Notifications
You must be signed in to change notification settings - Fork 204
83 lines (78 loc) · 2.54 KB
/
Copy pathci.yml
File metadata and controls
83 lines (78 loc) · 2.54 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
name: CI
on:
push:
branches: [master, beta]
pull_request:
branches: [master, beta]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
ARTIFACTORY_URL: ${{ vars.ARTIFACTORY_URL }}
jobs:
ci:
name: Lint + Build + Test
runs-on: ubuntu-latest-large
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Artifactory OIDC Auth
uses: ./.github/actions/artifactory-oidc
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
- run: corepack enable
- name: Install dependencies
run: |
set -o pipefail
yarn install --immutable 2>&1 | tee /tmp/yarn-install.log
- name: Curation Audit (on install failure)
if: failure()
uses: ./.github/actions/curation-audit
with:
install-log: /tmp/yarn-install.log
- name: Lint (eslint)
run: yarn lint
- name: Install treefmt + shfmt
run: |
curl -fsSL https://github.com/numtide/treefmt/releases/download/v2.5.0/treefmt_2.5.0_linux_amd64.tar.gz | sudo tar -xz -C /usr/local/bin treefmt
sudo curl -fsSL -o /usr/local/bin/shfmt https://github.com/mvdan/sh/releases/download/v3.13.1/shfmt_v3.13.1_linux_amd64
sudo chmod +x /usr/local/bin/shfmt
- name: Lint (formatting)
run: yarn format:check
- name: Build
run: yarn build
- name: Typecheck
run: yarn typecheck
- name: Test
run: yarn test
commitlint:
name: Commitlint
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest-large
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Artifactory OIDC Auth
uses: ./.github/actions/artifactory-oidc
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
- run: corepack enable
- name: Install dependencies
run: |
set -o pipefail
yarn install --immutable 2>&1 | tee /tmp/yarn-install.log
- name: Curation Audit (on install failure)
if: failure()
uses: ./.github/actions/curation-audit
with:
install-log: /tmp/yarn-install.log
- name: Validate PR title
run: echo "$PR_TITLE" | yarn commitlint
env:
PR_TITLE: ${{ github.event.pull_request.title }}