fix: Gemfile to reduce vulnerabilities #90
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: Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
gemfile: | |
- Gemfile | |
- gemfiles/Gemfile.Rails6 | |
- gemfiles/Gemfile.Rails61 | |
ruby: | |
- '3.1' | |
- '3.0' | |
- '2.7' | |
- '2.6' | |
- '2.5' | |
exclude: | |
- gemfile: Gemfile | |
ruby: '2.6' | |
- gemfile: Gemfile | |
ruby: '2.5' | |
- gemfile: gemfiles/Gemfile.Rails6 | |
ruby: '3.1' | |
runs-on: ubuntu-latest | |
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps | |
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
services: | |
mysql: | |
image: mysql:5.7 | |
env: | |
MYSQL_DATABASE: 'uuid_attribute_tests' | |
MYSQL_ROOT_PASSWORD: '' | |
MYSQL_ALLOW_EMPTY_PASSWORD: 1 | |
ports: | |
- 3306:3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
postgres: | |
image: postgres:10.10 | |
env: | |
POSTGRES_USER: runner | |
POSTGRES_PASSWORD: | |
POSTGRES_DB: uuid_attribute_tests | |
ports: | |
- 5432:5432 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true # runs bundle install and caches installed gems automatically | |
- run: bundle exec rake test |