Skip to content

Merge pull request #131 from FigureTechnologies/jtolotti/ch322114-upd… #169

Merge pull request #131 from FigureTechnologies/jtolotti/ch322114-upd…

Merge pull request #131 from FigureTechnologies/jtolotti/ch322114-upd… #169

Workflow file for this run

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/[email protected]
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/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
provenance_version: "v1.14.1"
test_script: "./scripts/test_ats.sh"
wasm_path: "./artifacts/ats_smart_contract.wasm"