mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
fix: auto-push coverage
This commit is contained in:
parent
083fd0dfa3
commit
b16e842849
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -6,6 +6,7 @@ on:
|
||||
- main
|
||||
paths-ignore:
|
||||
- website/**
|
||||
- coverage/**
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -39,6 +40,7 @@ jobs:
|
||||
- run: yarn
|
||||
- run: yarn lint
|
||||
- run: yarn run test:coverage
|
||||
- run: scripts/commit-coverage.sh
|
||||
env:
|
||||
CI: true
|
||||
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
|
||||
|
5
scripts/commit-coverage.sh
Executable file
5
scripts/commit-coverage.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
git add coverage
|
||||
git diff-index --quiet HEAD || git commit -m 'chore: update coverage reports'
|
||||
git push origin
|
Loading…
Reference in New Issue
Block a user