ci: install Flow CLI via official install.sh with FLOW_CLI_VERSION=v2… #15
Workflow file for this run
This file contains hidden or 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: Cadence Tests | |
| on: | |
| pull_request: | |
| branches: [ "**" ] | |
| push: | |
| branches: [ main, feature/liquidation-mechanism ] | |
| jobs: | |
| cadence-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Flow CLI v2.7.2 (matches local) | |
| run: | | |
| export FLOW_CLI_VERSION=v2.7.2 | |
| sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| flow version | |
| - name: Cache Flow emulator data (disabled) | |
| run: echo "We intentionally avoid caching ~/.flow to prevent state collisions between tests." | |
| - name: Install Cadence dependencies | |
| run: flow deps install --skip-alias --skip-deployments | |
| - name: Make test runner executable | |
| run: chmod +x ./run_tests.sh | |
| - name: Run Cadence tests with runner | |
| run: ./run_tests.sh | |