Kick the bundle along #32
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: Rspec Testing | |
on: [push,pull_request] | |
jobs: | |
# Label of the container job | |
ci-testing: | |
# Containers must run in Linux based operating systems | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
env: | |
CI_TEST: true | |
with: | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: RSPEC tests | |
run: | | |
RAILS_ENV=test bin/rails db:create | |
RAILS_ENV=test bin/rails db:migrate | |
RAILS_ENV=test bundle exec rspec | |
env: | |
CI_TEST: true | |
- name: Yarn Install | |
run: yarn install | |
- name: Bundle Audit | |
run: bundle exec bundle audit check --update | |
- name: Run Rubocop | |
run: bundle exec rubocop | |
- name: Run Brakeman | |
run: bundle exec brakeman -w1 -z |