-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.34 KB
/
test.yaml
File metadata and controls
39 lines (37 loc) · 1.34 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
name: Tests
# Tests workflow runs integration tests with Provenance
# This workflow is run on pushes to master & every Pull Request,
on:
push:
branches: [ main ]
pull_request:
jobs:
# This action cleans up previously running instances of a workflow on the same branch. This accomplishes
# the task of automatically cancelling CI runs on pushes to the same branch, which is a common feature in
# most CI systems but currently not possible with GitHub actions.
cleanup-runs:
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@v0.3.3
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"
test_ats_smart_contract:
runs-on: ubuntu-latest
name: Test ATS Smart Contract
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add wasm32 target
run: |
rustup target add wasm32-unknown-unknown
- name: Build ATS smart contract
run: |
make all
- name: Run ATS Test
uses: provenance-io/provenance-testing-action@v1.1.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
provenance_version: "v1.14.1"
test_script: "./scripts/test_ats.sh"
wasm_path: "./artifacts/ats_smart_contract.wasm"