Skip to content

Commit bbcb179

Browse files
author
Johan Brichau
authored
Merge pull request SeasideSt#156 from SeasideSt/coveralls
Introduce code coverage
2 parents 92748db + b9295e5 commit bbcb179

File tree

18 files changed

+37
-22
lines changed

18 files changed

+37
-22
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ name: smalltalkCI
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
test:
77
runs-on: ubuntu-18.04
88
strategy:
99
fail-fast: false
1010
matrix:
11-
smalltalk: [ Pharo64-10, Pharo64-9.0, Pharo64-8.0, Pharo64-7.0, GemStone64-3.6.3, GemStone64-3.5.7, GemStone64-3.4.5, GemStone64-3.3.9, GemStone64-3.2.17, GemStone64-3.1.0.6, Squeak64-5.3, Squeak64-5.2, Squeak64-5.1 ]
11+
smalltalk: [ Pharo64-10, Pharo64-9.0, Pharo64-8.0, Pharo64-7.0, GemStone64-3.6.3, GemStone64-3.5.7, GemStone64-3.4.5, GemStone64-3.3.9, GemStone64-3.2.17, GemStone64-3.1.0.6, Squeak64-5.3 ]
1212
experimental: [ false ]
1313
include:
1414
- smalltalk: Pharo64-11
1515
experimental: true
16-
- smalltalk: Squeak64-trunk
16+
- smalltalk: Squeak64-6.0
1717
experimental: true
1818
continue-on-error: ${{ matrix.experimental }}
1919
name: ${{ matrix.smalltalk }}
@@ -22,8 +22,14 @@ jobs:
2222
- uses: hpi-swa/setup-smalltalkCI@v1
2323
with:
2424
smalltalk-image: ${{ matrix.smalltalk }}
25+
smalltalkCI-source: 'jbrichau/smalltalkCI'
2526
- name: Run tests
26-
id: test_run
2727
run: smalltalkci -s ${{ matrix.smalltalk }}
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2830
shell: bash
29-
timeout-minutes: 20
31+
timeout-minutes: 20
32+
- name: Upload coverage to Codecov
33+
uses: codecov/codecov-action@v3
34+
with:
35+
name: ${{ matrix.smalltalk }}

.smalltalk.ston

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,15 @@ SmalltalkCISpec {
2020
#load : [ 'Tests' ],
2121
#platforms : [ #gemstone ]
2222
}
23-
]
23+
],
24+
#testing : {
25+
#defaultTimeout : 30,
26+
#include : {
27+
#classes : [ #SentButNotImplementedTest , #UndefinedSymbolsTest ]
28+
},
29+
#coverage : {
30+
#packages: [ 'Grease*' ],
31+
#format: #lcov
32+
}
33+
}
2434
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Grease is widely adopted. Implementations exist already for all platforms that s
1616

1717
## Platform compatibility
1818

19-
The latest Grease version is supported on the Pharo and GemStone/S platforms and versions tested in the SmalltalkCI workflow in Github Actions: [![smalltalkCI](https://github.com/SeasideSt/Grease/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/SeasideSt/Grease/actions/workflows/ci.yml)
19+
The latest Grease version is supported on the Pharo and GemStone/S platforms and versions tested in the SmalltalkCI workflow in Github Actions: [![smalltalkCI](https://github.com/SeasideSt/Grease/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/SeasideSt/Grease/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/SeasideSt/Grease/branch/master/graph/badge.svg?token=75NIYAHAGI)](https://codecov.io/gh/SeasideSt/Grease)
2020

2121
## Installation
2222

repository/Grease-Pharo100-Core.package/GRPharoPlatform.class/instance/stackDepth.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
exceptions
22
stackDepth
3-
3+
<ignoreForCoverage>
44
| depth current |
55
depth := 0.
66
current := thisContext.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
processes
22
thisContext
3-
3+
<ignoreForCoverage>
44
^ thisContext sender

repository/Grease-Pharo60-Core.package/GRPharoPlatform.class/instance/stackDepth.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
exceptions
22
stackDepth
3-
3+
<ignoreForCoverage>
44
| depth current |
55
depth := 0.
66
current := thisContext.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
processes
22
thisContext
3-
3+
<ignoreForCoverage>
44
^ thisContext sender

repository/Grease-Pharo70-Core.package/GRPharoPlatform.class/instance/stackDepth.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
exceptions
22
stackDepth
3-
3+
<ignoreForCoverage>
44
| depth current |
55
depth := 0.
66
current := thisContext.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
processes
22
thisContext
3-
3+
<ignoreForCoverage>
44
^ thisContext sender

repository/Grease-Pharo90-Core.package/GRPharoPlatform.class/instance/stackDepth.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
exceptions
22
stackDepth
3-
3+
<ignoreForCoverage>
44
| depth current |
55
depth := 0.
66
current := thisContext.

0 commit comments

Comments
 (0)