-
Notifications
You must be signed in to change notification settings - Fork 202
48 lines (41 loc) · 1.41 KB
/
e2e-wasm.yml
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
---
name: CosmWasm e2e contract tests
on:
# On normal PRs or when workflow goreleaser finishes, as it gets the last release tag.
pull_request:
# Allow concurrent runs on main/release branches but isolates other branches
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
jobs:
get-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download release
id: latest_release
uses: pozetroninc/[email protected]
with:
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: download release
uses: robinraju/[email protected]
with:
# uses latest (including drafts)
# tag: ${{ steps.latest_release.outputs.release }}
# uses latest (excluding drafts) as tagged by GitHub
latest: true
fileName: "*linux_amd64.tar.gz"
- name: unpack release
run: |
tar -xzf *linux_amd64.tar.gz
rm nibid*.gz
mv nibid* nibid || true
- name: launch localnet
run: |
sh ./contrib/scripts/e2e/localnet.sh
- name: run e2e tests
run: |
sh ./contrib/scripts/e2e/deploy-wasm.sh