-
-
Notifications
You must be signed in to change notification settings - Fork 8
61 lines (51 loc) · 1.48 KB
/
test.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
push:
pull_request:
branches: ["main"]
concurrency:
# Cancel older, in-progress jobs from the same PR, same workflow.
# use run_id if the job is triggered by a push to ensure
# push-triggered jobs to not get canceled.
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ApeWorX/github-action@v2
- run: ape compile --size
# Upload ape build files for testing
- uses: actions/upload-artifact@v3
with:
name: ape-build-folder
path: .build/*.json
py-test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: foundry-rs/foundry-toolchain@v1
- uses: ApeWorX/github-action@v2
# Ape build artifacts used for testing
- uses: actions/download-artifact@v3
with:
name: ape-build-folder
path: .build/
# TODO: Until `ApeWorX/github-action` supports poetry install
- run: pip install .
- run: ape test -s
js-test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
# Ape build artifacts used for testing
- uses: actions/download-artifact@v3
with:
name: ape-build-folder
path: .build/
- run: npm install .
- run: npm run build --workspaces --if-present