forked from arkedge/gaia
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (40 loc) · 1.14 KB
/
devtools.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
name: DevTools
on:
push:
branches: [ main ]
pull_request:
permissions:
contents: read
jobs:
devtools:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: actions/[email protected]
with:
node-version: 21
- name: Get Rust toolchain
id: toolchain
run: |
awk -F'[ ="]+' '$1 == "channel" { print "toolchain=" $2 }' rust-toolchain >> "$GITHUB_OUTPUT"
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ steps.toolchain.outputs.toolchain }}
- name: cache dependencies
uses: Swatinem/[email protected]
- name: Install wasm-pack
run: cargo install wasm-pack --locked
- name: install pnpm
working-directory: devtools-frontend
run: corepack enable
- name: install frontend dependencies
working-directory: devtools-frontend
run: pnpm install
- name: lint
working-directory: devtools-frontend
run: pnpm lint
- name: build
working-directory: devtools-frontend
run: pnpm build