|
1 | 1 | name: smalltalkCI |
2 | 2 |
|
3 | | -on: |
4 | | - push: |
5 | | - pull_request: |
6 | | - branches: |
7 | | - master |
8 | | - schedule: |
9 | | - - cron: "15 2 7 * *" #run job on the 7th day of every month on the 15th minute of the 2nd hour |
| 3 | +on: [push, pull_request] |
10 | 4 |
|
11 | 5 | jobs: |
12 | | - build: |
| 6 | + test: |
13 | 7 | runs-on: ubuntu-20.04 |
14 | 8 | strategy: |
| 9 | + fail-fast: false |
15 | 10 | matrix: |
16 | | - smalltalk: [ Pharo64-10, Pharo64-9.0, Pharo64-8.0, Pharo64-7.0, GemStone64-3.6.5, GemStone64-3.5.8, Squeak64-5.3, Squeak64-5.2, Squeak64-5.1 ] |
| 11 | + smalltalk: [ Pharo64-11, Pharo64-10, Pharo64-9.0, Pharo64-8.0, Pharo64-7.0, GemStone64-3.7.0, GemStone64-3.6.5, GemStone64-3.5.7, Squeak64-5.3 ] |
17 | 12 | experimental: [ false ] |
18 | 13 | include: |
19 | | - - smalltalk: Pharo64-11 |
| 14 | + - smalltalk: Pharo64-12 |
20 | 15 | experimental: true |
21 | | - - smalltalk: Squeak64-trunk |
| 16 | + - smalltalk: Squeak64-6.0 |
22 | 17 | experimental: true |
23 | 18 | continue-on-error: ${{ matrix.experimental }} |
24 | 19 | name: ${{ matrix.smalltalk }} |
25 | 20 | steps: |
26 | | - - name: Get current date |
27 | | - id: date |
28 | | - run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H:%M:%S')" |
29 | | - - name: Log date |
30 | | - run: echo "${{ steps.date.outputs.date }}" |
31 | | - - name: Set default run status |
32 | | - run: echo "::set-output name=last_run_status::default" > last_run_status |
33 | | - - name: Restore last run status |
34 | | - id: last_run |
35 | | - uses: actions/cache@v2 |
36 | | - with: |
37 | | - path: | |
38 | | - last_run_status |
39 | | - key: ${{ github.run_id }}-${{ matrix.smalltalk }}-${{ steps.date.outputs.date }} |
40 | | - restore-keys: | |
41 | | - ${{ github.run_id }}-${{ matrix.smalltalk }}- |
42 | | - - name: Set last run status |
43 | | - id: last_run_status |
44 | | - run: cat last_run_status |
45 | | - - uses: actions/checkout@v2 |
46 | | - with: |
47 | | - ref: ${{ github.event.workflow_dispatch.ref }} |
| 21 | + - uses: actions/checkout@v3 |
48 | 22 | - uses: hpi-swa/setup-smalltalkCI@v1 |
49 | 23 | with: |
50 | 24 | smalltalk-image: ${{ matrix.smalltalk }} |
51 | 25 | - name: Run tests |
52 | | - id: test_run |
53 | | - if: steps.last_run_status.outputs.last_run_status != 'success' |
54 | 26 | run: smalltalkci -s ${{ matrix.smalltalk }} |
| 27 | + env: |
| 28 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
55 | 29 | shell: bash |
56 | 30 | timeout-minutes: 20 |
57 | | - - name: Save run status |
58 | | - if: steps.last_run_status.outputs.last_run_status != 'success' |
59 | | - run: echo "::set-output name=last_run_status::${{ steps.test_run.outcome }}" > last_run_status |
60 | | - slack-workflow-status: |
61 | | - if: always() |
62 | | - name: Post Workflow Status To Slack |
63 | | - needs: |
64 | | - - build |
65 | | - runs-on: ubuntu-20.04 |
66 | | - steps: |
67 | | - - name: Slack Workflow Notification |
68 | | - uses: Gamesight/slack-workflow-status@master |
69 | | - with: |
70 | | - repo_token: ${{secrets.GITHUB_TOKEN}} |
71 | | - slack_webhook_url: ${{secrets.SLACK_DALEHENRICH}} |
72 | | - name: 'action run' |
| 31 | + - name: Upload coverage to Codecov |
| 32 | + uses: codecov/codecov-action@v3 |
| 33 | + with: |
| 34 | + name: ${{ matrix.smalltalk }} |
0 commit comments