Global pausing mechanism #653
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: CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| tests: | |
| name: Flow CLI Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GH_PAT }} | |
| submodules: "true" | |
| - name: Set up Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: "1.23.x" | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: Install Flow CLI | |
| env: | |
| FLOW_CLI_VERSION: v2.7.2 | |
| run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" | |
| - name: Update PATH and show Flow version | |
| run: | | |
| echo "/root/.local/bin" >> $GITHUB_PATH | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| which flow || true | |
| flow version | |
| - name: Install dependencies | |
| run: flow deps install --skip-alias --skip-deployments | |
| - name: Run tests | |
| run: flow test --cover --covercode="contracts" --coverprofile="coverage.lcov" ./cadence/tests/*_test.cdc | |
| - name: Upload coverage report | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| file: coverage.lcov | |
| flags: unittests | |
| name: codecov-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} |