-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.1 KB
/
Copy pathtest.yaml
File metadata and controls
56 lines (46 loc) · 1.1 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
55
56
name: Run Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build project
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install ao
run: curl -L https://install_ao.arweave.net | bash
- name: Build module
run: |
cd src
$HOME/.ao/bin/ao build
cd ..
- name: Temporarily save ao module
uses: actions/upload-artifact@v4
with:
name: ao-module-artifact
path: src/process.wasm
retention-days: 1
test:
name: Run integration tests
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Retrive ao module
uses: actions/download-artifact@v4
with:
name: ao-module-artifact
path: src
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "18"
- name: Install dependencies
run: npm i
- name: Run tests
run: npm test