-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fernando Corrêa de Oliveira
committed
Oct 29, 2023
1 parent
d31101a
commit f4668d6
Showing
2 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: coverage | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
perl6: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: fernandocorrea/red-tester-no-run | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run test coverage | ||
run: | | ||
racoco --fail-level=$(cat .coverage) --exec='zef test -v .' --html | raku -ne 'say $<num>.floor if /^ "Coverage:" <.ws> $<num>=[\d+\.\d+] "%" $/' > .coverage | ||
rm -rf docs/coverage | ||
mkdir -p docs/coverage/ | ||
mv .racoco/* docs/coverage/ | ||
- name: Commit files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add . | ||
git commit -m "Coverage" -a || true | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,12 +13,6 @@ jobs: | |
- name: Create local changes | ||
run: | | ||
raku tools/make-docs.raku | ||
- name: Run test coverage | ||
run: | | ||
racoco --fail-level=$(cat .coverage) --exec='zef test -v .' --html | raku -ne 'say $<num>.floor if /^ "Coverage:" <.ws> $<num>=[\d+\.\d+] "%" $/' > .coverage | ||
rm -rf docs/coverage | ||
mkdir -p docs/coverage/ | ||
mv .racoco/* docs/coverage/ | ||
- name: Commit files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
|