Skip to content

Add a dynamic security workflow and a SECURITY.md file #58

Add a dynamic security workflow and a SECURITY.md file

Add a dynamic security workflow and a SECURITY.md file #58

Workflow file for this run

name: Test
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
types:
- opened
- synchronize
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- 2.7.7
appraisal:
- rails_6_1
- rails_6_0
test_framework:
- minitest
- test_unit
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.appraisal }}.gemfile
TEST_FRAMEWORK: ${{ matrix.test_framework }}
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
id: set-up-ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/cache@v3
with:
path: vendor/bundle
key: v1-rubygems-local-${{ runner.os }}-${{ matrix.ruby }}-${{ hashFiles(format('gemfiles/{0}.gemfile.lock', matrix.appraisal)) }}
- name: Install dependencies
run: bundle install --jobs=3 --retry=3
- name: Run Tests
run: bundle exec rake