Don't manually install bundler #4
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 | |
# Container job steps | |
steps: | |
# Checkout the repository | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Cache Gems (per unique Lockfile) between CI runs! | |
- name: Cache Gems | |
uses: actions/cache@v4 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-bundle-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-bundle- | |
# Cache Coverage Reports to Allow Checking of Coverage Loss | |
- name: Cache SimpleCov Coverage | |
uses: actions/cache@v4 | |
with: | |
path: coverage | |
key: coverage | |
- name: Bundle Install | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: Yarn Install | |
run: yarn install | |
- name: Bundle Audit | |
run: bundle exec bundle audit check --update | |
- name: Run Rubocop | |
run: bundle exec rubocop app/ | |
- name: Run Brakeman | |
run: bundle exec brakeman -w1 -z |