Skip to content

Commit 6601ff0

Browse files
committed
Working
1 parent cb274dd commit 6601ff0

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/main.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,48 @@ jobs:
4545
step: "compile"
4646
token: ${{ secrets.GITHUB_TOKEN }}
4747
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

Comments
 (0)