Skip to content

Commit

Permalink
Merge pull request #9 from ba-st/update-evaluation-affordances
Browse files Browse the repository at this point in the history
Update evaluation affordances
  • Loading branch information
gcotelli authored Jan 18, 2021
2 parents 29b5091 + 1a6b318 commit bd74c02
Show file tree
Hide file tree
Showing 11 changed files with 107 additions and 10 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
smalltalk: [ Pharo64-8.0, Pharo64-7.0, Pharo32-7.0, Pharo32-6.1 ]
smalltalk: [ Pharo64-8.0, Pharo64-7.0, Pharo32-7.0 ]
name: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v2
- uses: ba-st-actions/setup-smalltalkCI@v1.0.0
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-version: ${{ matrix.smalltalk }}
- run: smalltalkci -s ${{ matrix.smalltalk }}
- name: Load Image and Run Tests
run: smalltalkci -s ${{ matrix.smalltalk }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
- run: echo "::set-env name=SCI_COVERAGE_FILE_LOCATION::${HOME}/.smalltalkCI/_builds/coveralls_results.json"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.0.6
uses: codecov/codecov-action@v1
with:
name: ${{matrix.os}}-${{matrix.smalltalk}}
token: ${{ secrets.CODECOV_TOKEN }}
file: ${{ env.SCI_COVERAGE_FILE_LOCATION }}
23 changes: 23 additions & 0 deletions .github/workflows/loading-groups.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Group loading check

on: [push,pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
smalltalk: [ Pharo64-8.0, Pharo64-7.0 ]
load-spec: [ deployment, dependent-sunit-extensions, tests, tools, development]
name: ${{ matrix.smalltalk }} + ${{ matrix.load-spec }}
steps:
- uses: actions/checkout@v2
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-version: ${{ matrix.smalltalk }}
- name: Load group in image
run: smalltalkci -s ${{ matrix.smalltalk }} .loading.${{ matrix.load-spec }}.ston
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
13 changes: 13 additions & 0 deletions .loading.dependent-sunit-extensions.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'WillowMixpanel',
#directory : 'source',
#load : [ 'Dependent-SUnit-Extensions' ],
#platforms : [ #pharo ]
}
],
#testing : {
#failOnZeroTests : false
}
}
13 changes: 13 additions & 0 deletions .loading.deployment.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'WillowMixpanel',
#directory : 'source',
#load : [ 'Deployment' ],
#platforms : [ #pharo ]
}
],
#testing : {
#failOnZeroTests : false
}
}
16 changes: 16 additions & 0 deletions .loading.development.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'WillowMixpanel',
#directory : 'source',
#load : [ 'Development' ],
#platforms : [ #pharo ]
}
],
#testing : {
#coverage : {
#packages : [ 'Willow-Mixpanel*' ],
#format: #lcov
}
}
}
16 changes: 16 additions & 0 deletions .loading.tests.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'WillowMixpanel',
#directory : 'source',
#load : [ 'Tests' ],
#platforms : [ #pharo ]
}
],
#testing : {
#coverage : {
#packages : [ 'Willow-Mixpanel*' ],
#format: #lcov
}
}
}
13 changes: 13 additions & 0 deletions .loading.tools.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'WillowMixpanel',
#directory : 'source',
#load : [ 'Tools' ],
#platforms : [ #pharo ]
}
],
#testing : {
#failOnZeroTests : false
}
}
3 changes: 2 additions & 1 deletion .smalltalk.ston
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ SmalltalkCISpec {
],
#testing : {
#coverage : {
#packages : [ 'Willow-Mixpanel*' ]
#packages : [ 'Willow-Mixpanel*' ],
#format: #lcov
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BaselineOfWillowMixpanel >> projectClass [
BaselineOfWillowMixpanel >> setUpDependencies: spec [

spec
baseline: 'Willow' with: [ spec repository: 'github://ba-st/Willow:v13/source' ];
baseline: 'Willow' with: [ spec repository: 'github://ba-st/Willow:v14/source' ];
project: 'Willow-Deployment' copyFrom: 'Willow' with: [ spec loads: 'Deployment' ];
project: 'Willow-SUnit' copyFrom: 'Willow' with: [ spec loads: 'Dependent-SUnit-Extensions' ];
project: 'Willow-Tools' copyFrom: 'Willow' with: [ spec loads: 'Tools' ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WillowMixpanelInteractionTest >> testSendToMixpanel [

| interpreter html |

interpreter := WebInteractionInterpreter forClickOnComponent.
interpreter := EventInterpreterDispatcher defaultingToClick trigger.
interpreter sendToMixpanel: [ :mixpanel | mixpanel track: 'Testing' ].
html := self apply: interpreter toComponentDefinedBy: [ :canvas | canvas button ].
self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Extension { #name : #WebInteractionInterpreterBehavior }
WebInteractionInterpreterBehavior >> sendToMixpanel: aBlock [

^ self
executeOnClient: [ :canvas |
userAgentDo: [ :canvas |
| mixpanel |

mixpanel := canvas mixpanel.
Expand Down

0 comments on commit bd74c02

Please sign in to comment.