Update to make compatible with Provenance 1.19 #168
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |