Problem: missing verification api for wc 2.0 (fix #474) #1373
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: integration tests | |
on: | |
push: | |
branches: | |
- main | |
- release/** | |
paths-ignore: | |
- README.md | |
tags: | |
- "*" | |
merge_group: | |
pull_request: | |
paths-ignore: | |
- README.md | |
jobs: | |
integration_tests: | |
runs-on: ubuntu-20.04 | |
env: | |
WASM_BINDGEN_TEST_TIMEOUT: 60 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: cachix/install-nix-action@v19 | |
with: | |
# pin to nix-2.13 to workaround compability issue of 2.14, | |
# see: https://github.com/cachix/install-nix-action/issues/161 | |
install_url: https://releases.nixos.org/nix/nix-2.13.3/install | |
- uses: cachix/cachix-action@v10 | |
with: | |
name: cronos | |
extraPullNames: dapp | |
# github don't pass secrets for pull request from fork repos, | |
# in that case the push is disabled naturally. | |
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" | |
- name: 'Tar debug files' | |
if: failure() | |
run: tar cfz debug_files.tar.gz -C /tmp/pytest-of-runner . | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: debug-files | |
path: debug_files.tar.gz | |
if-no-files-found: ignore | |
- name: Build play-cpp-sdk library | |
run: CXX=clang++-10 CXXFLAGS=-stdlib=libc++ cargo build --package play-cpp-sdk --release | |
- name: Build demo project | |
working-directory: demo | |
run: make CXX=clang++-10 | |
- name: Run cpp tests | |
env: | |
CRONOSCAN_API_KEY: ${{ secrets.CRONOSCAN_API_KEY }} | |
PAY_API_KEY: ${{ secrets.PAY_API_KEY }} | |
PAY_WEBSOCKET_PORT: "4567" | |
run: ./integration_test.sh |