chore(deps): bump regex from 1.9.1 to 1.9.4 #160
This file contains 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: "Test" | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
push: | |
branches: | |
- "main" | |
jobs: | |
tests: | |
strategy: | |
# Allow other jobs to finish building and cache properly before bailing | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
install_url: https://nixos.org/nix/install | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
install_url: ${{ matrix.install_url }} | |
- uses: oleksiyrudenko/[email protected] | |
with: | |
token: '${{ secrets.GITHUB_TOKEN }}' | |
- name: flake checks | |
run: | | |
nix flake check --keep-going --print-build-logs ${{ matrix.nixpkgs-override }} | |
for f in $(find /nix/store -name cobertura.xml); do | |
cp -v $f . | |
done | |
- name: Code Coverage Report | |
uses: irongut/[email protected] | |
with: | |
filename: cobertura.xml | |
badge: true | |
format: text | |
hide_branch_rate: false | |
hide_complexity: true | |
indicators: true | |
output: both | |
- name: update coverage branch | |
run: | | |
set -x | |
if [ "$GITHUB_REF_NAME" = "main" ]; then | |
git switch --orphan ci/coverage | |
curl -Lso coverage.svg $(grep "^http" code-coverage-results.txt) | |
git add coverage.svg | |
git commit -m 'chore: update coverage' | |
git push -f origin ci/coverage:ci/coverage | |
fi | |