Skip to content

UPGRADE RAILS AND GEMS ON WORKER: As Dan, I want to upgrade rails on the API, so that we are secure and up-to-date #216

UPGRADE RAILS AND GEMS ON WORKER: As Dan, I want to upgrade rails on the API, so that we are secure and up-to-date

UPGRADE RAILS AND GEMS ON WORKER: As Dan, I want to upgrade rails on the API, so that we are secure and up-to-date #216

Workflow file for this run

name: Tests
on: pull_request
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Rubocop
run: |
bundle exec rubocop
rspec:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:4.4
ports:
- 27017:27017
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run RSpec unit tests
env:
API_HOST: "http://127.0.0.1:3000"
HARVESTER_API_KEY: YOUR_HARVESTER_API_KEY
MANAGER_HOST: "http://127.0.0.1:3001"
HARVESTER_CACHING_ENABLED: "false"
LINKCHECKER_EMAIL: "[email protected]"
LINK_CHECKING_ENABLED: "true"
LINKCHECKER_RECIPIENTS: "[email protected]"
WORKER_KEY: YOUR_WORKER_KEY
run: |
bundle exec rspec spec --fail-fast --format=progress
brakeman:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run brakeman
run: |
gem install brakeman
brakeman --run-all-checks
bundle-audit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run the gems audit
run: |
gem install bundler-audit
bundle audit check --update