chore(deps): bump aws-sdk-s3 from 1.164.0 to 1.171.0 #220
Workflow file for this run
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: "Ruby on Rails CI" | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
test: | |
name: Test on Ubuntu | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:14 | |
env: | |
POSTGRES_USER: rails | |
POSTGRES_PASSWORD: password | |
POSTGRES_DB: rails_test | |
options: >- | |
--health-cmd "pg_isready -U rails" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
env: | |
RAILS_ENV: test | |
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3.1 | |
bundler-cache: true | |
- name: Install PostgreSQL client | |
run: sudo apt-get install -y libpq-dev | |
- name: Set up database | |
run: bin/rails db:schema:load | |
- name: Run tests | |
run: bundle exec rspec | |
lint: | |
name: Linting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Run linters | |
run: | | |
bundle exec rubocop | |
bundle exec brakeman -q -w2 | |
bundle exec bundler-audit update |