-
-
Notifications
You must be signed in to change notification settings - Fork 503
56 lines (54 loc) · 1.56 KB
/
runtime.yml
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
# We have code that relies on Rust code AND JS code, we want to run this job when the relevant code changes
name: Checks for our runtimes
on:
push:
branches:
- main
paths:
- 'packages/**'
- 'crates/**'
pull_request:
branches:
- main
paths:
- 'packages/**'
- 'crates/**'
env:
RUST_LOG: info
RUST_BACKTRACE: 1
jobs:
apis-check:
name: Checks on APIs project
runs-on: ubuntu-latest
steps:
- name: Checkout PR Branch
uses: actions/checkout@v4
- name: Install wasm-pack
uses: jetli/[email protected]
with:
version: 'latest'
- name: Cache pnpm modules
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 8
- name: Install toolchain
uses: moonrepo/setup-rust@v1
- name: Install libraries
working-directory: packages/@biomejs/js-api
run: pnpm i
- name: Compile backends
run: |
pnpm --prefix packages/@biomejs/js-api build:wasm-bundler
pnpm --prefix packages/@biomejs/js-api build:wasm-node
pnpm --prefix packages/@biomejs/js-api build:wasm-web
pnpm --prefix packages/@biomejs/backend-jsonrpc i
pnpm --prefix packages/@biomejs/backend-jsonrpc run build
- name: CI checks
working-directory: packages/@biomejs/js-api
run: pnpm run ci