Bump brace-expansion from 2.0.1 to 2.1.2 #354
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: Coverage | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| concurrency: | |
| group: coverage-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| env: | |
| OCAMLRUNPARAM: b | |
| jobs: | |
| coverage: | |
| runs-on: ubuntu-24.04-arm | |
| permissions: | |
| actions: write # For build cache overwriting | |
| id-token: write # For CodeCov OIDC | |
| env: | |
| OS: ubuntu-24.04-arm | |
| OCAML_COMPILER: 5.3.0 | |
| RUST_TARGET: aarch64-unknown-linux-gnu | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup Node and dependencies | |
| uses: ./.github/actions/setup-node | |
| - name: Setup Linux dependencies | |
| uses: ./.github/actions/setup-linux-dependencies | |
| - name: Build rewatch | |
| uses: ./.github/actions/build-rewatch | |
| with: | |
| cache-target: ${{ env.RUST_TARGET }} | |
| - name: Setup OCaml ${{ env.OCAML_COMPILER }} | |
| id: setup_ocaml | |
| uses: ./.github/actions/setup-ocaml | |
| with: | |
| compiler: ${{ env.OCAML_COMPILER }} | |
| os: ${{ env.OS }} | |
| cache-prefix: opam-coverage-v1 | |
| dependency-flags: --deps-only --with-test --with-dev-setup | |
| # --- Coverage build cache -------------------------------------------- | |
| # The bisect_ppx-instrumented dune build is a separate artifact from | |
| # the main CI build, so it gets its own key. Only restore/save on | |
| # master pushes — PRs share the master cache to stay fast but won't | |
| # poison it. | |
| - name: Coverage build state key | |
| id: coverage-build-state-key | |
| run: echo "value=coverage-build-state-v1-${{ env.OS }}-${{ steps.setup_ocaml.outputs.setup_version }}-${{ env.OCAML_COMPILER }}-${{ hashFiles('*.opam', 'compiler/**', 'dune-project') }}" >> $GITHUB_OUTPUT | |
| - name: Restore coverage build state | |
| if: github.base_ref == 'master' || github.ref == 'refs/heads/master' | |
| id: coverage-build-state | |
| uses: actions/cache/restore@v6 | |
| with: | |
| path: | | |
| ~/.cache/dune | |
| _build | |
| key: ${{ steps.coverage-build-state-key.outputs.value }} | |
| - name: Run coverage | |
| run: opam exec -- make coverage | |
| - name: Delete stale coverage build state | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| run: | | |
| gh extension install actions/gh-actions-cache | |
| gh actions-cache delete ${{ steps.coverage-build-state-key.outputs.value }} \ | |
| -R ${{ github.repository }} \ | |
| -B "$GITHUB_REF" \ | |
| --confirm || echo "not exist" | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| - name: Save coverage build state | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| uses: actions/cache/save@v6 | |
| with: | |
| path: | | |
| ~/.cache/dune | |
| _build | |
| key: ${{ steps.coverage-build-state-key.outputs.value }} | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| files: _coverage/coverage.json | |
| fail_ci_if_error: false | |
| use_oidc: true |