Skip to content

Commit

Permalink
Add CI and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
astares committed Sep 9, 2023
1 parent 09f3f05 commit c969e85
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 5 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
ame: Build

on: [push,pull_request,workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
smalltalk: [ Pharo64-7.0, Pharo64-8.0, Pharo64-9.0, Pharo64-10, Pharo64-11 ]
name: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v2
- name: Set up Smalltalk CI
uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ matrix.smalltalk }}
- name: Load Image and Run Tests
run: smalltalkci -s ${{ matrix.smalltalk }} .smalltalkci/.unit-tests.ston
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
name: ${{matrix.os}}-${{matrix.smalltalk}}
token: ${{ secrets.CODECOV_TOKEN }}
16 changes: 16 additions & 0 deletions .smalltalkci/.unit-tests.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'Artefact',
#directory : '../src',
#load : [ 'CI' ],
#platforms : [ #pharo ]
}
],
#testing : {
#coverage : {
#packages : [ 'Artefact*' ],
#format: #lcov
}
}
}
12 changes: 7 additions & 5 deletions src/BaselineOfArtefact/BaselineOfArtefact.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ BaselineOfArtefact >> baseline: spec [

"Groups"
spec
group: 'core' with: #('Artefact-Core');
group: 'tests' with: #('Artefact-Core-Tests');
group: 'examples' with: #('Artefact-Examples');
group: 'seaside' with: #('Artefact-Seaside');
group: 'default' with: #('core' 'tests' 'examples') ]
group: 'Core' with: #('Artefact-Core');
group: 'Tests' with: #('Artefact-Core-Tests');
group: 'Examples' with: #('Artefact-Examples');
group: 'Seaside' with: #('Artefact-Seaside');
group: 'CI' with: #('Tests');
group: 'default' with: #('Core' 'Tests' 'Examples');
group: 'all' with: #('default' 'Seaside') ]
]

{ #category : #dependencies }
Expand Down

0 comments on commit c969e85

Please sign in to comment.