-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(ci) - initial version of github actions ci configuration
- Loading branch information
1 parent
1db853c
commit 6c254ea
Showing
1 changed file
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
env: | ||
RUBY_VERSION: 3.2.2 | ||
|
||
name: RichEnums CI | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- .gitignore | ||
- CHANGELOG.md | ||
- CONTRIBUTING.md | ||
- README.md | ||
push: | ||
paths-ignore: | ||
- .gitignore | ||
- CHANGELOG.md | ||
- CONTRIBUTING.md | ||
- README.md | ||
|
||
jobs: | ||
rspec-test: | ||
name: Run tests (ruby ${{ matrix.ruby }}, rails ${{ matrix.rails }}) | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
include: | ||
- ruby: '3.2' | ||
rails: '7.1' | ||
env: | ||
BUNDLE_GEMFILE: gemfiles/activerecord_${{ matrix.rails }}.gemfile | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
- name: Gem cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gem-use-ruby-${{ hashFiles('**/Gemfile.lock') }} | ||
- name: Install dependencies | ||
run: | | ||
gem install bundler --version 2.3.25 --no-document | ||
bundle config path vendor/bundle | ||
bundle install --jobs 4 --retry 3 | ||
- name: Run tests | ||
run: bundle exec rake spec |