This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
chore(deps): update dependency puma to v6.4.2 #565
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: | |
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@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 | |
with: | |
bundler-cache: true | |
- name: Create SQLite database | |
run: | | |
touch db/test.sqlite | |
- name: Set up database schema | |
run: bin/rails db:schema:load | |
- name: Provide test key to decrypt credentials file | |
run: echo ${{ secrets.RAILS_TEST_KEY }} > config/credentials/test.key | |
- name: Run tests | |
env: | |
RAILS_ENV: test | |
run: bin/rails test:prepare 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@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 | |
with: | |
bundler-cache: true | |
- name: Security audit dependencies | |
run: bundle exec ruby-audit check | |
- name: Security audit application code | |
run: bundle exec brakeman -q -w2 | |
- name: Lint Ruby files | |
run: bundle exec standardrb |