Skip to content

Commit c969e85

Browse files
authored
Add CI and coverage
1 parent 09f3f05 commit c969e85

File tree

3 files changed

+50
-5
lines changed

3 files changed

+50
-5
lines changed

.github/workflows/build.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
ame: Build
2+
3+
on: [push,pull_request,workflow_dispatch]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
smalltalk: [ Pharo64-7.0, Pharo64-8.0, Pharo64-9.0, Pharo64-10, Pharo64-11 ]
11+
name: ${{ matrix.smalltalk }}
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Smalltalk CI
15+
uses: hpi-swa/setup-smalltalkCI@v1
16+
with:
17+
smalltalk-image: ${{ matrix.smalltalk }}
18+
- name: Load Image and Run Tests
19+
run: smalltalkci -s ${{ matrix.smalltalk }} .smalltalkci/.unit-tests.ston
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
timeout-minutes: 15
23+
- name: Upload coverage to Codecov
24+
uses: codecov/codecov-action@v1
25+
with:
26+
name: ${{matrix.os}}-${{matrix.smalltalk}}
27+
token: ${{ secrets.CODECOV_TOKEN }}

.smalltalkci/.unit-tests.ston

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
SmalltalkCISpec {
2+
#loading : [
3+
SCIMetacelloLoadSpec {
4+
#baseline : 'Artefact',
5+
#directory : '../src',
6+
#load : [ 'CI' ],
7+
#platforms : [ #pharo ]
8+
}
9+
],
10+
#testing : {
11+
#coverage : {
12+
#packages : [ 'Artefact*' ],
13+
#format: #lcov
14+
}
15+
}
16+
}

src/BaselineOfArtefact/BaselineOfArtefact.class.st

+7-5
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,13 @@ BaselineOfArtefact >> baseline: spec [
4646

4747
"Groups"
4848
spec
49-
group: 'core' with: #('Artefact-Core');
50-
group: 'tests' with: #('Artefact-Core-Tests');
51-
group: 'examples' with: #('Artefact-Examples');
52-
group: 'seaside' with: #('Artefact-Seaside');
53-
group: 'default' with: #('core' 'tests' 'examples') ]
49+
group: 'Core' with: #('Artefact-Core');
50+
group: 'Tests' with: #('Artefact-Core-Tests');
51+
group: 'Examples' with: #('Artefact-Examples');
52+
group: 'Seaside' with: #('Artefact-Seaside');
53+
group: 'CI' with: #('Tests');
54+
group: 'default' with: #('Core' 'Tests' 'Examples');
55+
group: 'all' with: #('default' 'Seaside') ]
5456
]
5557

5658
{ #category : #dependencies }

0 commit comments

Comments
 (0)