Skip to content

Commit 3883ded

Browse files
committed
more ruby versions
1 parent ea008f8 commit 3883ded

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,23 @@ jobs:
1919

2020
env:
2121
HTML5_PARSING: true
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
ruby: ["2.7", "3.0", "3.1", "3.2"]
27+
task: ["rack_smoke", "cucumber"]
28+
2229
steps:
2330
- uses: actions/checkout@v3
2431

2532
- name: Set up Ruby
2633
uses: ruby/setup-ruby@v1
2734
with:
28-
ruby-version: "3.0"
35+
ruby-version: ${{ matrix.ruby }}
2936
bundler-cache: true
30-
- name: Run rack_smoke
31-
run: bundle exec rake rack_smoke
37+
- name: Run smoke tests
38+
run: bundle exec rake ${{ matrix.task }}
3239

3340
headless:
3441
runs-on: ubuntu-latest
@@ -40,8 +47,8 @@ jobs:
4047
# Ensure all jobs are run to completion
4148
fail-fast: false
4249
matrix:
43-
ruby: ["3.0"]
44-
task: ["spec_chrome", "spec_firefox", "cucumber"]
50+
ruby: ["3.2"]
51+
task: ["spec_chrome", "spec_firefox"]
4552

4653
steps:
4754
- uses: actions/checkout@v3
@@ -66,7 +73,7 @@ jobs:
6673
fail-fast: false
6774
matrix:
6875
ruby: ["2.7.0"]
69-
task: ["spec_chrome", "spec_firefox", "cucumber"]
76+
task: ["spec_chrome", "spec_firefox"]
7077

7178
steps:
7279
- uses: actions/checkout@v3
@@ -102,8 +109,6 @@ jobs:
102109
run: docker-compose up -d selenium_chrome
103110
- name: Run specs
104111
run: bundle exec rake spec_chrome_remote
105-
- name: Run cukes
106-
run: bundle exec rake cucumber
107112

108113
remote_firefox:
109114
runs-on: ubuntu-latest
@@ -124,8 +129,6 @@ jobs:
124129
run: docker-compose up -d selenium_firefox
125130
- name: Run specs
126131
run: bundle exec rake spec_firefox_remote
127-
- name: Run cukes
128-
run: bundle exec rake cucumber
129132

130133
non_headless:
131134
runs-on: ubuntu-latest
@@ -135,7 +138,7 @@ jobs:
135138
fail-fast: false
136139
matrix:
137140
ruby: ["3.0"]
138-
task: ["spec_chrome", "spec_firefox", "cucumber"]
141+
task: ["spec_chrome", "spec_firefox"]
139142

140143
steps:
141144
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)