-
Notifications
You must be signed in to change notification settings - Fork 3
Migrate CI to GitHub Actions #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
fd0cd0a
eecf3e8
84282bd
51f806f
03ed9aa
2e3ed3a
0a95a98
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Notify about failed build | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Tests"] | ||
types: [completed] | ||
|
||
jobs: | ||
notify: | ||
name: 📣 Notify community on failure | ||
if: ${{ github.event_name == 'schedule' && github.event.workflow_run.conclusion == 'failure' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send email on failure | ||
if: ${{ github.event_name == 'schedule' && github.event.workflow_run.conclusion == 'failure' }} | ||
uses: dawidd6/action-send-mail@v2 | ||
with: | ||
server_address: ${{ secrets.SMTP_SERVER }} | ||
server_port: ${{ secrets.SMTP_PORT }} | ||
username: ${{ secrets.SMTP_USERNAME }} | ||
password: ${{ secrets.SMTP_PASSWORD }} | ||
subject: GitHub Actions failed for ${{ github.repository }} | ||
body: Build job of ${{ github.repository }} failed! See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} for more information. | ||
to: ${{ secrets.MAIL_RECEIVER }} | ||
from: GitHub Actions |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
schedule: | ||
- cron: '42 2 * * 1' # once a week | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
smalltalk: | ||
- Squeak64-trunk | ||
- Squeak64-5.3 | ||
- Squeak64-5.2 | ||
name: ${{ matrix.smalltalk }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- id: smalltalkci | ||
uses: hpi-swa/setup-smalltalkCI@v1 | ||
with: | ||
smalltalk-image: ${{ matrix.smalltalk }} | ||
- run: smalltalkci -s ${{ steps.smalltalkci.outputs.smalltalk-image }} | ||
timeout-minutes: 15 | ||
env: | ||
# for uploading coverage reports | ||
GITHUB_TOKEN: ${{ github.token }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
'srcDirectory' : 'src' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does this file belong to and why is it introduced now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The commit message could have elaborated on the purpose of this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for confusion. This file explains the default directory of the package directory to the newest Metacello version so you do not need to specify the path manually in the load script. |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'FileSystem', | ||
#directory : 'src', | ||
#load : [ 'tests' ], | ||
#platforms : [ #squeak ], | ||
#useLatestMetacello : true | ||
} | ||
] | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'FileSystem', | ||
#directory : 'src', | ||
#load : [ 'tests' ], | ||
#platforms : [ #squeak ], | ||
#useLatestMetacello : true | ||
} | ||
], | ||
#testing : { | ||
#packages : [ 'FS-Tests-*' ], | ||
#coverage : { | ||
#packages : [ 'FS-AnsiStreams', 'FS-Core', 'FS-Disk', 'FS-FileDirectory-Adapters', 'FS-Memory' ], | ||
#format : #coveralls | ||
} | ||
} | ||
} |
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do want this, someone who has admin access to this repository will need to enter these secrets. The workflow definition is copied pretty much 1:1 from another repository, so I don't expect hard-to-debug failures. I have already some working credentials available, please contact me privately and I'll send them to you. :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To which addresses would you like to send this? I guess most of the folks on squeak-dev are not interested in FileSystem. And neither is Pharo in this different version of the library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My first guess would have been squeak-dev since this repository is part of @squeak-smalltalk. Alternatively, I can also add me and you and some other interested people ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ston, tonel, and filesystem repositories are a bit odd in this organization. They are effectively not as supported as, say, the Trunk of Squeak is. I do not believe that either of the three would be undisputedly considered to be part of Squeak, as opposed to what is in Trunk.