1
0
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:
Ivar Conradi Østhus 2022-05-20 11:59:42 +02:00
parent 083fd0dfa3
commit b16e842849
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09
2 changed files with 7 additions and 0 deletions

View File

@ -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
View 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