-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.15 KB
/
Copy pathci.yml
File metadata and controls
53 lines (43 loc) · 1.15 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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: ci
on:
push:
branches:
- main
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--conditions=development"
PATH: "/usr/bin:/bin:/usr/local/bin"
CHERRY_TMP_ROOT: "/tmp/cherry-tmp"
CHERRY_VINE_SIGNATURE_MODE: "enforce"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '24.15.0'
cache: 'npm'
- name: Install toolchain
run: |
sudo apt-get update
sudo apt-get install -y ripgrep
- name: Prepare temp root
run: |
mkdir -p "$CHERRY_TMP_ROOT"
chmod 700 "$CHERRY_TMP_ROOT"
- name: Install dependencies
run: npm ci
- name: Guardrails
run: npm run check:guardrails
- name: Node runtime tests
run: npm run check:tests:node
- name: Next runtime tests
run: npm run check:tests:next
- name: Verify CI truth
run: npm run ci:verify