Skip to content

test(starknet_client): integration test with the starknet GW #5

test(starknet_client): integration test with the starknet GW

test(starknet_client): integration test with the starknet GW #5

Workflow file for this run

name: nightly-tests
on:
schedule:
- cron: "30 0 * * *"
- cron: "30 3 * * *"
workflow_dispatch:
push:
branches:
- tzahi/gw_integration_test_basic
env:
OS: ${{ github.event.schedule == "30 3 * * *" && 'macos-latest' || 'ubuntu-latest' }}

Check failure on line 13 in .github/workflows/nightly-tests.yml

View workflow run for this annotation

GitHub Actions / nightly-tests

Invalid workflow file

The workflow is not valid. .github/workflows/nightly-tests.yml (Line: 13, Col: 7): Unexpected symbol: '"30'. Located at position 26 within expression: github.event.schedule == "30 3 * * *" && 'macos-latest' || 'ubuntu-latest' .github/workflows/nightly-tests.yml (Line: 17, Col: 14): Unrecognized named-value: 'env'. Located at position 1 within expression: env.OS
jobs:
GW-integration-test:
runs-on: ${{ env.OS }}
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
# Workflow steps exit upon failure of a subcommand (running `set -e` implicitly before the
# run. As we want to keep running this step after a test failure we can either start with
# `set +e` to suppress all errors, or, as done below, append `|| retVal=$?` to the command
# which makes it successful while storing the potential erroneous code.
- run: >
sudo apt update; sudo apt -y install libclang-dev;
INTEGRATION_TESTNET_NODE_URL=${{ secrets.INTEGRATION_TESTNET_NODE_URL }}
SENDER_PRIVATE_KEY=${{ secrets.INTEGRATION_TESTNET_SENDER_PRIVATE_KEY }}
cargo test --test gateway_integration_test -p starknet_client test_gw_integration_testnet
-- --ignored || retVal=$?;
if [ $retVal -ne 0 ]; then
echo "Integration test failed with exit code $retVal";
fi;
exit $retVal