Skip to content

Commit

Permalink
Update rubyonrails.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhamo1107 authored Sep 18, 2024
1 parent c6b0ca4 commit d770408
Showing 1 changed file with 4 additions and 29 deletions.
33 changes: 4 additions & 29 deletions .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: windows-latest
services:
postgres:
image: postgres:11-alpine
Expand Down Expand Up @@ -41,37 +41,12 @@ jobs:
- name: Ensure Rails binstubs are executable
run: chmod +x bin/rails bin/rake

- name: Install dependencies
run: bundle install

- name: Set up database
run: |
bin/rails db:prepare
- name: Run tests
run: bin/rake

lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
bundler-cache: true

- name: Ensure binstubs are executable
run: chmod +x bin/bundler-audit bin/brakeman bin/rubocop

- name: Generate binstubs
run: bundle binstubs bundler-audit brakeman rubocop

- name: Security audit dependencies
run: bin/bundler-audit --update

- name: Security audit application code
run: bin/brakeman -q -w2

- name: Lint Ruby files
run: bin/rubocop --parallel

0 comments on commit d770408

Please sign in to comment.