-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace CircleCI config with GH Actions CI workflow
- Loading branch information
Showing
2 changed files
with
53 additions
and
56 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: ci | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
ruby-version: | ||
- '2.7' | ||
- '3.0' | ||
- '3.1' | ||
|
||
name: test (ruby ${{ matrix.ruby-version }}) | ||
|
||
permissions: | ||
contents: read | ||
checks: write | ||
|
||
env: | ||
LATEST_RUBY_VERSION: '3.1' | ||
BUNDLE_DEPLOYMENT: true | ||
BUNDLE_CACHE_ALL: true | ||
BUNDLE_ONLY: default test | ||
CI: true | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true | ||
|
||
- run: bundle lock | ||
|
||
- run: bundle cache --no-install | ||
env: | ||
BUNDLE_DEPLOYMENT: false | ||
|
||
- run: bundle check || bundle install --local | ||
|
||
- run: bundle exec rake test |