Warnings: Use alias_method
> alias_attribute
for non-attributes
#206
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
name: ci | |
on: [push, pull_request] | |
env: | |
CI: "true" | |
RAILS_ENV: "test" | |
jobs: | |
rspec-test: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
- name: Bundle | |
run: | | |
gem install bundler -v 2.1.3 | |
bundle install --jobs 4 --retry 3 | |
- name: Create database | |
run: | | |
bundle exec rails db:create | |
bundle exec rails db:schema:load | |
- name: Build and test with rspec | |
run: bundle exec rspec | |
- name: Cleanup | |
run: ./.github/upload_coverage.sh $GITHUB_EVENT_PATH |