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
|
- main
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- website/**
|
- website/**
|
||||||
|
- coverage/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -39,6 +40,7 @@ jobs:
|
|||||||
- run: yarn
|
- run: yarn
|
||||||
- run: yarn lint
|
- run: yarn lint
|
||||||
- run: yarn run test:coverage
|
- run: yarn run test:coverage
|
||||||
|
- run: scripts/commit-coverage.sh
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
|
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