Bump bootsnap from 1.16.0 to 1.17.0 #419
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Set up PostgreSQL | |
uses: Harmon758/postgresql-action@v1.0.0 | |
with: | |
postgresql user: test | |
postgresql password: password | |
postgresql db: pakotoa_test | |
- name: Rubocop | |
run: bundle exec rubocop | |
- name: Haml-lint | |
run: | | |
bundle exec haml-lint | |
- name: Prepare database | |
run: | | |
echo -e "test:\n adapter: postgresql\n url: postgres://test:password@localhost/pakotoa_test\n encoding: unicode\n pool: <%= ENV.fetch('RAILS_MAX_THREADS') { 5 } %>" > config/database.yml | |
RAILS_ENV=test bundle exec rails db:setup | |
- name: RSpec | |
run: | | |
RAILS_ENV=test bundle exec rails spec | |
- name: Cucumber | |
run: | | |
RAILS_ENV=test bundle exec cucumber |