-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create GithubActions workflow for tests (#37)
* create GithubActions workflow for normal tests * create autolinter workflow for Github Actions (#38) * Delete .travis.yml * Create necessary files, classes and methods for SWALint * update .smalltalk.ston to exclude linter class * update baseline to load SWALint as requirement * make some methods backwards compatible to 5.1/2 * increased linting timeout * adapted linter tests to our needs * excluded MEXResources for linting * implemented logging of linter results * updated README.md and added badge for coverage * refactored according to Linter Rules
- Loading branch information
Showing
195 changed files
with
983 additions
and
163 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,34 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request events on every branch | ||
on: [push, pull_request] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
strategy: | ||
matrix: | ||
# Select platform(s) | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
# Select compatible Smalltalk image(s) | ||
smalltalk: [Squeak64-trunk, Squeak64-5.3, Squeak64-5.2, Squeak64-5.1] | ||
# The type of runner that the job will run on | ||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.smalltalk }} on ${{ matrix.os }} | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: Setup smalltalkCI | ||
uses: hpi-swa/setup-smalltalkCI@v1 | ||
with: | ||
smalltalk-version: ${{ matrix.smalltalk }} | ||
- name: Test MorphicAPIExplorer | ||
run: smalltalkci -s ${{ matrix.smalltalk }} | ||
shell: bash | ||
timeout-minutes: 15 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,24 @@ | ||
name: Linter | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request events on every branch | ||
on: [push, pull_request] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
name: Squeak64-5.3 on ubuntu-latest | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: Setup smalltalkCI | ||
uses: hpi-swa/setup-smalltalkCI@v1 | ||
with: | ||
smalltalk-version: Squeak64-5.3 | ||
- name: Test MorphicAPIExplorer | ||
run: smalltalkci -s Squeak64-5.3 .linter.ston | ||
shell: bash | ||
timeout-minutes: 15 |
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,14 @@ | ||
SmalltalkCISpec { | ||
#preLoading : 'scripts/preLoading.st', | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'MorphicAPIExplorer', | ||
#directory : 'packages', | ||
#load : 'tests', | ||
#platforms : [ #squeak ] | ||
} | ||
], | ||
#testing : { | ||
#classes : [ #MEXLinter ] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,10 +1,19 @@ | ||
SmalltalkCISpec { | ||
#preLoading : 'scripts/preLoading.st', | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'MorphicAPIExplorer', | ||
#platforms : [ #squeak ], | ||
#directory : 'packages', | ||
#load : [ 'tests' ] | ||
#load : 'tests' | ||
} | ||
] | ||
], | ||
#testing : { | ||
#exclude : { | ||
#classes : [ #MEXLinter ] | ||
}, | ||
#coverage : { | ||
#packages : [ 'MorphicAPIExplorer-Core.*' ] | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
4 changes: 4 additions & 0 deletions
4
...elineOfMorphicAPIExplorer.package/BaselineOfMorphicAPIExplorer.class/instance/postLoad.st
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,4 @@ | ||
baseline | ||
postLoad | ||
|
||
(Smalltalk globals at: #SwaLint) perform: #install |
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
3 changes: 2 additions & 1 deletion
3
packages/MorphicAPIExplorer-Core.package/MEXListItemWrapper.class/instance/icon.st
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
2 changes: 1 addition & 1 deletion
2
packages/MorphicAPIExplorer-Core.package/MEXMethod.class/instance/splitMethodOnParameters.st
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
creation | ||
splitMethodOnParameters | ||
|
||
^ self name findTokens: #: | ||
^ self name findTokens: $: |
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
4 changes: 0 additions & 4 deletions
4
...PIExplorer-Core.package/MEXPluggableMultiSelectionTreeSpec.class/instance/dragStarted..st
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...APIExplorer-Core.package/MEXPluggableMultiSelectionTreeSpec.class/instance/dragStarted.st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...APIExplorer-Core.package/MEXPluggableMultiSelectionTreeSpec.class/instance/dropAccept..st
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
unsupported - drag and drop | ||
dropAccept: Symbol | ||
dropAccept: aSymbol | ||
|
||
MEXUnsupportedError new signal |
4 changes: 0 additions & 4 deletions
4
...PIExplorer-Core.package/MEXPluggableMultiSelectionTreeSpec.class/instance/hoverAction..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...APIExplorer-Core.package/MEXPluggableMultiSelectionTreeSpec.class/instance/hoverAction.st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...Explorer-Core.package/MEXPluggableMultiSelectionTreeSpec.class/instance/unhoverAction..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...IExplorer-Core.package/MEXPluggableMultiSelectionTreeSpec.class/instance/unhoverAction.st
This file was deleted.
Oops, something went wrong.
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
3 changes: 2 additions & 1 deletion
3
packages/MorphicAPIExplorer-Core.package/MEXScalableImageMorph.class/instance/keepRatio.st
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
accessing | ||
keepRatio | ||
"contrary to coding standards we need a lazy init because of initialization order in the super classes" | ||
|
||
^ keepRatio ifNil: [keepRatio := false] | ||
^ keepRatio ifNil: [self keepRatio: false. keepRatio] |
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
4 changes: 1 addition & 3 deletions
4
...OverView.class/instance/defaultMorphs..st → .../MEXTool.class/instance/defaultMorphs..st
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
accessing | ||
defaultMorphs: anObject | ||
|
||
defaultMorphs := anObject | ||
|
||
defaultMorphs := anObject |
1 change: 0 additions & 1 deletion
1
...ationView.class/instance/defaultMorphs.st → ...e/MEXTool.class/instance/defaultMorphs.st
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
accessing | ||
defaultMorphs | ||
|
||
^ defaultMorphs |
2 changes: 1 addition & 1 deletion
2
packages/MorphicAPIExplorer-Core.package/MEXTool.class/instance/standardMorphs.st
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
as yet unclassified | ||
default morphs | ||
standardMorphs | ||
|
||
^ {CircleMorph new . TextMorph new . SketchMorph new . RectangleMorph new . Morph new} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.