-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (41 loc) · 1.12 KB
/
ci.yaml
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
name: Tests
on: [ push, pull_request ]
jobs:
Test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.31
- name: Install Dependencies
run: bun install --production
- name: Run tests
run: bun run test
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.31
- name: Install WASM binaries from aspectron.org
run: wget -O wasm.zip https://kaspa.aspectron.org/nightly/downloads/kaspa-wasm32-sdk-2024-09-13.zip
- name: Extract WASM binaries
run: |
7z x wasm.zip
mkdir ./wasm
mv ./kaspa-wasm32-sdk/web/kaspa/* ./wasm
- name: Install Dependencies
run: bun install
- name: Build Kaspian
run: bun run build
- name: Upload Dist as Artifact
uses: actions/upload-artifact@v4
with:
name: unpacked-extension
path: dist/