-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (49 loc) · 1.3 KB
/
Copy pathci.yml
File metadata and controls
62 lines (49 loc) · 1.3 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
name: CI
on:
push:
branches:
- main
- next
pull_request:
workflow_dispatch:
permissions:
contents: read
# Skip stale runs when a PR gets pushed rapidly.
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
lint:
name: Lint & Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: corepack enable
- name: Install dependencies
run: yarn install --immutable
- name: Lint
run: yarn lint
- name: Typecheck
run: yarn typecheck
- name: Test
run: yarn test
build:
name: Build Artifacts
needs: lint
uses: ./.github/workflows/build-artifacts.yml
with:
release-mode: false
retention-days: 7
# Sentinel job. `deploy-web.yml` on `pull_request_target` waits for this
# single stable check name before deploying a preview — avoids coupling
# the deploy workflow to every individual CI job name (including the
# dynamically-named matrix jobs from build-artifacts).
ci-complete:
name: CI Complete
needs: [lint, build]
runs-on: ubuntu-latest
steps:
- run: echo "All CI jobs passed."