-
Notifications
You must be signed in to change notification settings - Fork 34
41 lines (37 loc) · 1.15 KB
/
test.yml
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
name: Pull-request
on:
pull_request:
types: [assigned, opened, synchronize, reopened]
jobs:
# Read the content of the file versions.json. It is interpreted as a json data in the next job.
get-versions:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.read-file.outputs.versions }}
steps:
- uses: actions/checkout@v3
- name: Read file
id: read-file
run: |
VERSIONS=$(cat $GITHUB_WORKSPACE/.github/workflows/versions.json)
echo "versions=$VERSIONS" >> $GITHUB_OUTPUT
# Run tests on pharo versions described in the file pharo-versions.json
build:
runs-on: ubuntu-latest
needs:
- get-versions
strategy:
fail-fast: false
matrix:
smalltalk: ${{ fromJSON(needs.get-versions.outputs.versions).pharo-versions }}
name: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Option fetching all commits
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ matrix.smalltalk }}
- run: smalltalkci -s ${{ matrix.smalltalk }}
shell: bash
timeout-minutes: 15