wip #19
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] | |
jobs: | |
security_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Salus Scan | |
run: docker run --rm -t -v $(pwd):/home/repo coinbase/salus:latest | |
tests: | |
runs-on: ubuntu-latest | |
container: | |
image: ruby:2.6.6 | |
env: | |
BUNDLE_JOBS: 3 | |
BUNDLE_RETRY: 3 | |
BUNDLE_PATH: vendor/bundle | |
RAILS_ENV: test | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update Rubygems | |
run: | | |
gem update --system 3.3.22 | |
- name: Install Bundler 1.17.3 | |
run: | | |
gem install bundler -v '1.17.3' | |
- name: Install ffi | |
run: | | |
gem install ffi -v '1.17.0' | |
- name: Which bundler? | |
run: | | |
bundle -v | |
- name: Cache | |
id: restore-cache | |
uses: actions/cache@v3 | |
with: | |
path: vendor/bundle | |
key: rails-demo-bundle-v2-${{ hashFiles('Gemfile.lock') }} | |
- name: Bundle Install | |
run: | | |
bundle _1.17.3_ install | |
- name: Rubocop | |
run: bundle exec rubocop | |
- name: Run rspec | |
run: | | |
bundle exec rspec spec |