|
45 | 45 | step: "compile" |
46 | 46 | token: ${{ secrets.GITHUB_TOKEN }} |
47 | 47 | working-directory: "test/fixtures/dummy_gem" |
| 48 | + test: |
| 49 | + needs: [get_versions, compile] |
| 50 | + timeout-minutes: 20 |
| 51 | + name: "Run the test suite" |
| 52 | + strategy: |
| 53 | + matrix: |
| 54 | + os: ["ubuntu-latest"] |
| 55 | + rubies: ${{ fromJSON(needs.get_versions.outputs.ruby_versions_for_testing) }} |
| 56 | + type: ["cross"] |
| 57 | + runs-on: "${{ matrix.os }}" |
| 58 | + steps: |
| 59 | + - name: "Checkout code" |
| 60 | + uses: "actions/checkout@v5" |
| 61 | + - name: "Setup Ruby" |
| 62 | + uses: "ruby/setup-ruby@v1" |
| 63 | + with: |
| 64 | + ruby-version: "${{ matrix.rubies }}" |
| 65 | + bundler-cache: true |
| 66 | + working-directory: "test/fixtures/dummy_gem" |
| 67 | + - name: "Run easy compile" |
| 68 | + uses: "./.github/actions/easy_compile" |
| 69 | + with: |
| 70 | + step: "test_${{ matrix.type }}" |
| 71 | + token: ${{ secrets.GITHUB_TOKEN }} # TODO Remove this before publishing the gem |
| 72 | + working-directory: "test/fixtures/dummy_gem" |
| 73 | + install: |
| 74 | + needs: [get_versions, compile, test] |
| 75 | + timeout-minutes: 5 |
| 76 | + name: "Verify the gem can be installed" |
| 77 | + strategy: |
| 78 | + matrix: |
| 79 | + os: ["ubuntu-latest"] |
| 80 | + runs-on: "${{ matrix.os }}" |
| 81 | + steps: |
| 82 | + - name: "Checkout code" |
| 83 | + uses: "actions/checkout@v5" |
| 84 | + - name: "Setup Ruby" |
| 85 | + uses: "ruby/setup-ruby@v1" |
| 86 | + with: |
| 87 | + ruby-version: ${{ needs.get_versions.outputs.latest_supported_ruby_version }} |
| 88 | + - name: "Run easy compile" |
| 89 | + uses: "./.github/actions/easy_compile" |
| 90 | + with: |
| 91 | + token: ${{ secrets.GITHUB_TOKEN }} # TODO Remove this before publishing the gem |
| 92 | + step: "install" |
0 commit comments