new moose logo #306
Workflow file for this run
This file contains hidden or 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
| 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 |