ci: refine runner workflow (install deps, run on main & feature) #3
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 Flow CLI | |
| uses: onflow/setup-flow-cli@v1 | |
| with: | |
| version: "v2.7.3" | |
| - 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 | |