forked from SeasideSt/Grease
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (64 loc) · 2.16 KB
/
ci.yml
File metadata and controls
66 lines (64 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: smalltalkCI
on:
push:
pull_request:
branches:
master
schedule:
- cron: "15 2 7 * *" #run job on the 7th day of every month on the 15th minute of the 2nd hour
jobs:
build:
strategy:
matrix:
os: [ ubuntu-20.04, macos-latest ]
smalltalk: [ GemStone64-3.6.5, GemStone64-3.6.0, GemStone64-3.5.8, GemStone64-3.5.3 ]
runs-on: ${{ matrix.os }}
name: ${{ matrix.smalltalk }}
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H:%M:%S')"
- name: Log date
run: echo "${{ steps.date.outputs.date }}"
- name: Set default run status
run: echo "::set-output name=last_run_status::default" > last_run_status
- name: Restore last run status
id: last_run
uses: actions/cache@v2
with:
path: |
last_run_status
key: ${{ github.run_id }}-${{ matrix.smalltalk }}-${{ steps.date.outputs.date }}
restore-keys: |
${{ github.run_id }}-${{ matrix.smalltalk }}-
- name: Set last run status
id: last_run_status
run: cat last_run_status
- uses: actions/checkout@v2
with:
ref: ${{ github.event.workflow_dispatch.ref }}
- uses: dalehenrich/setup-smalltalkCI@solo
with:
smalltalk-image: ${{ matrix.smalltalk }}
- name: Run tests
id: test_run
if: steps.last_run_status.outputs.last_run_status != 'success'
run: smalltalkci -s ${{ matrix.smalltalk }}
shell: bash
timeout-minutes: 20
- name: Save run status
if: steps.last_run_status.outputs.last_run_status != 'success'
run: echo "::set-output name=last_run_status::${{ steps.test_run.outcome }}" > last_run_status
slack-workflow-status:
if: always()
name: Post Workflow Status To Slack
needs:
- build
runs-on: ubuntu-20.04
steps:
- name: Slack Workflow Notification
uses: Gamesight/slack-workflow-status@master
with:
repo_token: ${{secrets.GITHUB_TOKEN}}
slack_webhook_url: ${{secrets.SLACK_DALEHENRICH}}
name: 'action run'