Bundler Audit (test-bundler-audit -> ) by @aprilrieger #2
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: "Bundler Audit" | |
run-name: Bundler Audit (${{ github.ref_name }} -> ${{ inputs.environment }}) by @${{ github.actor }} | |
on: [push] | |
jobs: | |
audit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1 | |
- name: Install dependencies | |
run: | | |
gem install bundler | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: Run bundler-audit | |
run: | | |
gem install bundler-audit | |
bundle exec bundle-audit check --update | |
- name: Upload report | |
if: failure() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: bundler-audit-report | |
path: report*.txt |