-
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.45 KB
/
Copy pathci.yml
File metadata and controls
54 lines (43 loc) · 1.45 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
name: CI
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: zcode-cli-ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: 22.19.0
package-manager-cache: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.3.12
- name: Restore pinned runtime cache
id: runtime-cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: vendor
key: zcode-runtime-linux-${{ hashFiles('zcode-runtime.lock.json', 'scripts/sync-runtime.ts') }}
- name: Fetch pinned runtime
if: steps.runtime-cache.outputs.cache-hit != 'true'
run: |
sudo apt-get update && sudo apt-get install -y p7zip-full
bun install --frozen-lockfile
bun run build:tui
bun scripts/sync-runtime.ts --lock zcode-runtime.lock.json
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Test
run: bun test
- name: Typecheck
run: bun run typecheck