This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
chore(deps): update dependency selenium-webdriver to v4.18.1 #396
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
# This workflow will install a prebuilt Ruby version, install dependencies, and | |
# run tests and linters. | |
name: "Ruby on Rails CI" | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
services: | |
postgres: | |
image: postgis/postgis:11-2.5-alpine | |
ports: | |
- "5432:5432" | |
env: | |
POSTGRES_DB: rails_test | |
POSTGRES_USER: rails | |
POSTGRES_PASSWORD: password | |
env: | |
RAILS_ENV: test | |
DATABASE_URL: "postgis://rails:password@localhost:5432/rails_test" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Add or replace dependency steps here | |
- name: Install Ruby and gems | |
uses: ruby/setup-ruby@v1 | |
with: | |
# No need to specify Ruby version | |
# Automatically set with .ruby-version present | |
bundler-cache: true | |
# Add or replace database setup steps here | |
- name: Create database | |
run: bin/rails db:create | |
# Add or replace test runners here | |
- name: Run tests | |
run: COVERAGE=true bin/rails test:all | |
lint: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Ruby and gems | |
uses: ruby/setup-ruby@v1 | |
with: | |
# No need to specify Ruby version | |
# Automatically set with .ruby-version present | |
bundler-cache: true | |
- name: Security audit dependencies | |
run: bundle exec bundle audit --update | |
- name: Security audit application code | |
run: bundle exec brakeman -q -w2 | |
- name: Lint Ruby files | |
run: bundle exec standardrb |