Skip to content

Commit c1ec289

Browse files
Cache and matrix changes to GitHub actions
1 parent decc0c1 commit c1ec289

1 file changed

Lines changed: 13 additions & 25 deletions

File tree

.github/workflows/main.yml

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,38 @@ on:
33
push:
44
branches:
55
- main
6+
- develop
67
pull_request:
78
branches:
89
- main
910
concurrency:
1011
group: ${{ github.workflow }}-${{ github.ref }}
1112
cancel-in-progress: true
1213
jobs:
13-
macos_regression:
14-
runs-on: macos-latest
14+
regression_tests:
1515
timeout-minutes: 3
1616
strategy:
1717
matrix:
18+
os:
19+
- macos-latest
20+
- ubuntu-latest
1821
ruby:
1922
- "3.2"
2023
- "3.3"
2124
- "3.4"
25+
gemfile:
26+
- "puma-6-latest"
27+
- "puma-6.5-latest"
28+
- "puma-7-latest"
29+
runs-on: ${{ matrix.os }}
30+
env:
31+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
2232
steps:
2333
- uses: actions/checkout@v4
2434
- name: Set up Ruby
2535
uses: ruby/setup-ruby@v1
2636
with:
2737
ruby-version: ${{ matrix.ruby }}
2838
bundler-cache: true
29-
- name: Run the Appraisal installer
30-
run: bundle exec appraisal install
3139
- name: Run the default task
32-
run: bundle exec appraisal rake
33-
ubuntu_regression:
34-
runs-on: ubuntu-latest
35-
timeout-minutes: 3
36-
strategy:
37-
matrix:
38-
ruby:
39-
- "3.2"
40-
- "3.3"
41-
- "3.4"
42-
steps:
43-
- uses: actions/checkout@v4
44-
- name: Set up Ruby
45-
uses: ruby/setup-ruby@v1
46-
with:
47-
ruby-version: ${{ matrix.ruby }}
48-
bundler-cache: true
49-
- name: Run the Appraisal installer
50-
run: bundle exec appraisal install
51-
- name: Run the default task
52-
run: bundle exec appraisal rake
40+
run: bundle exec appraisal ${{ matrix.gemfile }} rake

0 commit comments

Comments
 (0)