This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
Merge branch 'shadn-experiment' into staging #130
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: check | |
on: [push] | |
jobs: | |
linters: | |
name: Linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Ruby and install gems | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: false | |
- name: Install dependencies | |
run: | | |
bundle install | |
- name: Run linters | |
run: | | |
bundle exec rubocop | |
- name: Run security checks | |
run: | | |
bundle exec bundler-audit --update | |
bundle exec rubocop | |
bundle exec brakeman --quiet | |
./bin/importmap audit | |
# tests: | |
# name: Tests | |
# runs-on: ubuntu-latest | |
# services: | |
# postgres: | |
# image: postgres:12.7 | |
# env: | |
# POSTGRES_USER: myapp | |
# POSTGRES_DB: myapp_test | |
# POSTGRES_PASSWORD: "" | |
# ports: ["5432:5432"] | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v2 | |
# - name: Setup Ruby and install gems | |
# uses: ruby/setup-ruby@v1 | |
# with: | |
# bundler-cache: true | |
# - name: Setup test database | |
# env: | |
# RAILS_ENV: test | |
# PGHOST: localhost | |
# PGUSER: myapp | |
# run: | | |
# bin/rails db:setup | |
# - name: Run tests | |
# run: bundle exec rspec |