Skip to content

Commit 945d389

Browse files
committed
update CI workflow
Uses correct main branch, updates checkout and setup-ruby actions, runs spec-live on Ruby 3.4, adds JRuby 10, removes unnecessary `bundle install`.
1 parent 0693480 commit 945d389

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ on:
55
pull_request:
66
push:
77
branches:
8-
- master
8+
- main
99
- spec_live
1010

1111
jobs:
1212
test-and-lint:
1313
name: Test and lint
1414
runs-on: ubuntu-latest
1515
strategy:
16+
fail-fast: false
1617
matrix:
1718
ruby:
1819
- "2.7"
@@ -22,17 +23,17 @@ jobs:
2223
- "3.3"
2324
- "3.4"
2425
- "jruby-9.4"
26+
- "jruby-10.0"
2527
steps:
2628
- name: Checkout code
27-
uses: zendesk/checkout@v2
29+
uses: actions/checkout@v5
2830
- name: Set up Ruby
29-
uses: zendesk/setup-ruby@v1
31+
uses: ruby/setup-ruby@v1
3032
with:
3133
bundler-cache: true
3234
ruby-version: ${{ matrix.ruby }}
3335
- name: Test and Lint
3436
run: |
35-
bundle install
3637
bundle exec rake
3738
bundle exec rubocop
3839
spec-live:
@@ -45,15 +46,14 @@ jobs:
4546
runs-on: ubuntu-latest
4647
steps:
4748
- name: Checkout code
48-
uses: zendesk/checkout@v2
49+
uses: actions/checkout@v5
4950
- name: Set up Ruby
50-
uses: zendesk/setup-ruby@v1
51+
uses: ruby/setup-ruby@v1
5152
with:
5253
bundler-cache: true
53-
ruby-version: 3.1
54+
ruby-version: 3.4
5455
- name: spec:live
5556
run: |
56-
bundle install
5757
bundle exec rake clean_live set_ci_credentials spec:live ||
5858
bundle exec rake clean_live &&
5959
bundle exec rspec spec/live --only-failures

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
id-token: write
1616
contents: write
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919
- name: Set up Ruby
2020
uses: ruby/setup-ruby@v1
2121
with:

0 commit comments

Comments
 (0)