forked from jamesmartin/inline_svg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also: - Run GitHub Actions on PRs - Set explicit permissions to read for better security. Workflows run with extended set of permissions by default. By specifying any permission explicitly, all others are set to none. - Update actions to prevent deprecation warning messages - Remove redundant `gem install bundler` (bundler is already available after setup-ruby action) - Test against Rails 7.1 / Shakapacker 8 (allow failures) - Test against multiple Ruby version - Experimental tests against ruby-head Ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
- Loading branch information
Showing
3 changed files
with
54 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 0 additions & 62 deletions
62
.github/workflows/rails_6_webpacker_integration_tests.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
name: Ruby | ||
|
||
on: [push] | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby-version: ['3.0', '3.1', '3.2', '3.3'] | ||
channel: ['stable'] | ||
|
||
include: | ||
- ruby-version: 'head' | ||
channel: 'experimental' | ||
|
||
continue-on-error: ${{ matrix.channel != 'stable' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby 2.7 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7.7 | ||
- name: Build and test with Rake | ||
ruby-version: '3.3' | ||
bundler-cache: true | ||
- name: Test with Rake | ||
run: | | ||
gem install bundler | ||
bundle install --jobs 4 --retry 3 | ||
bundle exec rake |