Skip to content

Commit

Permalink
Racoco
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Corrêa de Oliveira committed Oct 29, 2023
1 parent 95b21d7 commit 470c3c7
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/create-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ jobs:
container:
image: fernandocorrea/red-tester-no-run
steps:
- uses: actions/checkout@v2
- 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/report.html .racoco/report-data docs/coverage/
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Create docs" -a || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- 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/report.html .racoco/report-data docs/coverage/
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Create docs" -a || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 470c3c7

Please sign in to comment.