ci: fix go install path for Flow CLI v2 (use github.com/onflow/flow-c… #11
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: Setup Go (for Flow CLI install) | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: stable | |
| - name: Install Flow CLI v2.7.2 (matches local) | |
| run: | | |
| go install github.com/onflow/flow-cli/v2/cmd/flow@v2.7.2 | |
| echo "$HOME/go/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 | |