Generate RUby 3.4 gemfiles and lockfiles #17
This file contains 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: Unit Test | |
on: | |
push: | |
jobs: | |
matrix: | |
runs-on: ubuntu-latest | |
container: | |
image: "ruby:3.3" | |
name: Prepare matrix | |
outputs: | |
matrix: ${{ steps.matrix.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Compute matrix | |
id: matrix | |
run: | | |
matrix="$(ruby matrix.rb --json specs)" | |
echo "${matrix}" | ruby -rjson -0777 -ne 'puts JSON.pretty_generate JSON.parse($_)' | |
echo "matrix=${matrix}" >> $GITHUB_OUTPUT | |
test: | |
name: "${{ matrix.spec }}" | |
needs: matrix | |
strategy: | |
fail-fast: false | |
matrix: | |
spec: ${{ fromJSON(needs.matrix.outputs.matrix) }} | |
uses: ./.github/workflows/unit-test-spec.yml | |
with: | |
spec: ${{ matrix.spec }} | |