-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix rare issue in covered lines collector - add code coverage badges
- Loading branch information
Showing
11 changed files
with
160 additions
and
21 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,30 @@ | ||
name: MacOS Dev | ||
|
||
on: | ||
push: | ||
branches: [ dev ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
raku: | ||
strategy: | ||
matrix: | ||
os: | ||
- macOS-latest | ||
raku-version: | ||
- 'latest' | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: Raku/setup-raku@v1 | ||
with: | ||
raku-version: ${{ matrix.raku-version }} | ||
- name: Install Dependencies | ||
run: zef install --/test --test-depends --deps-only . | ||
- name: Install App::Prove6 | ||
run: zef install --/test App::Prove6 | ||
- name: Run Tests | ||
run: prove6 t xt |
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 |
---|---|---|
|
@@ -2,8 +2,6 @@ name: MacOS | |
|
||
on: | ||
push: | ||
branches: [ master, dev ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
workflow_dispatch: | ||
|
@@ -26,7 +24,22 @@ jobs: | |
run: zef install --/test --test-depends --deps-only . | ||
- name: Install App::Prove6 | ||
run: zef install --/test App::Prove6 | ||
- name: Run Tests | ||
run: prove6 t | ||
- name: Run XT Tests | ||
run: prove6 xt | ||
- name: Run RaCoCo | ||
run: raku -Ilib bin/racoco --exec='prove6 t xt' | ||
- name: Discover Code Coverage | ||
run: | | ||
coverage=`head -1 .racoco/report.txt | sed 's/\..*//'` | ||
echo $coverage | ||
echo "COVERAGE=$coverage%" >> $GITHUB_ENV | ||
- name: Create Code Coverage Badge | ||
uses: schneegans/[email protected] | ||
with: | ||
auth: ${{ secrets.GIST_COCO_TOCKEN }} | ||
gistID: 3113bf626af5b82ec0917574e638fcf5 | ||
filename: racoco-macos-coco.json | ||
namedLogo: Apple | ||
logoColor: 969da4 | ||
label: Coverage | ||
labelColor: 343a41 | ||
message: ${{ env.COVERAGE }} | ||
color: 5cb45a |
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,30 @@ | ||
name: Ubuntu Dev | ||
|
||
on: | ||
push: | ||
branches: [ dev ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
raku: | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
raku-version: | ||
- 'latest' | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: Raku/setup-raku@v1 | ||
with: | ||
raku-version: ${{ matrix.raku-version }} | ||
- name: Install Dependencies | ||
run: zef install --/test --test-depends --deps-only . | ||
- name: Install App::Prove6 | ||
run: zef install --/test App::Prove6 | ||
- name: Run Tests | ||
run: prove6 t xt |
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 |
---|---|---|
|
@@ -2,8 +2,6 @@ name: Ubuntu | |
|
||
on: | ||
push: | ||
branches: [ master, dev ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
workflow_dispatch: | ||
|
@@ -26,7 +24,22 @@ jobs: | |
run: zef install --/test --test-depends --deps-only . | ||
- name: Install App::Prove6 | ||
run: zef install --/test App::Prove6 | ||
- name: Run Tests | ||
run: prove6 t | ||
- name: Run XT Tests | ||
run: prove6 xt | ||
- name: Run RaCoCo | ||
run: raku -Ilib bin/racoco --exec='prove6 t xt' | ||
- name: Discover Code Coverage | ||
run: | | ||
coverage=`head -1 .racoco/report.txt | sed 's/\..*//'` | ||
echo $coverage | ||
echo "COVERAGE=$coverage%" >> $GITHUB_ENV | ||
- name: Create Code Coverage Badge | ||
uses: schneegans/[email protected] | ||
with: | ||
auth: ${{ secrets.GIST_COCO_TOCKEN }} | ||
gistID: bbe5dc9c78db69d256b11c2ea562a42f | ||
filename: racoco-ubuntu-coco.json | ||
namedLogo: Ubuntu | ||
logoColor: 969da4 | ||
label: Coverage | ||
labelColor: 343a41 | ||
message: ${{ env.COVERAGE }} | ||
color: 5cb45a |
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,30 @@ | ||
name: Windows Dev | ||
|
||
on: | ||
push: | ||
branches: [ dev ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
raku: | ||
strategy: | ||
matrix: | ||
os: | ||
- windows-latest | ||
raku-version: | ||
- 'latest' | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: Raku/setup-raku@v1 | ||
with: | ||
raku-version: ${{ matrix.raku-version }} | ||
- name: Install Dependencies | ||
run: zef install --/test --test-depends --deps-only . | ||
- name: Install App::Prove6 | ||
run: zef install --/test App::Prove6 | ||
- name: Run Tests | ||
run: prove6 t xt |
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 |
---|---|---|
|
@@ -2,8 +2,6 @@ name: Windows | |
|
||
on: | ||
push: | ||
branches: [ master, dev ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
workflow_dispatch: | ||
|
@@ -26,7 +24,23 @@ jobs: | |
run: zef install --/test --test-depends --deps-only . | ||
- name: Install App::Prove6 | ||
run: zef install --/test App::Prove6 | ||
- name: Run Tests | ||
run: prove6 t | ||
- name: Run XT Tests | ||
run: prove6 xt | ||
- name: Run RaCoCo | ||
run: raku -Ilib bin/racoco --exec='prove6 t xt' | ||
- name: Discover Code Coverage | ||
run: | | ||
coverage=`head -1 .racoco/report.txt | sed 's/\..*//'` | ||
echo $coverage | ||
echo "COVERAGE=$coverage%" >> $GITHUB_ENV | ||
shell: bash | ||
- name: Create Code Coverage Badge | ||
uses: schneegans/[email protected] | ||
with: | ||
auth: ${{ secrets.GIST_COCO_TOCKEN }} | ||
gistID: ab8fd9f770291f542eec3245a756e7c8 | ||
filename: racoco-windows-coco.json | ||
namedLogo: Windows | ||
logoColor: 969da4 | ||
label: Coverage | ||
labelColor: 343a41 | ||
message: ${{ env.COVERAGE }} | ||
color: 5cb45a |
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
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
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
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
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