Skip to content

Commit 3bdb313

Browse files
committed
Change GHA to run a separate linter command on push
1 parent 8e12c58 commit 3bdb313

2 files changed

Lines changed: 15 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,6 @@ jobs:
3838
- name: Scan for security vulnerabilities in JavaScript dependencies
3939
run: bin/importmap audit
4040

41-
lint:
42-
runs-on: ubuntu-latest
43-
steps:
44-
- name: Checkout code
45-
uses: actions/checkout@v4
46-
47-
- name: Set up Ruby
48-
uses: ruby/setup-ruby@v1
49-
with:
50-
ruby-version: .ruby-version
51-
bundler-cache: true
52-
53-
- name: Lint code for consistent style
54-
run: bin/rubocop -f github
55-
5641
test:
5742
runs-on: ubuntu-latest
5843

@@ -86,4 +71,4 @@ jobs:
8671
env:
8772
RAILS_ENV: test
8873
DATABASE_URL: postgres://postgres:postgres@localhost:5432
89-
run: RAILS_ENV=test bin/rails db:test:prepare spec
74+
run: RAILS_ENV=test bin/rails db:test:prepare spec

.github/workflows/lint.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Standard Ruby Linter
2+
on:
3+
push:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
checks: write
11+
contents: write
12+
steps:
13+
- name: Standard Ruby
14+
uses: standardrb/standard-ruby-action@v1

0 commit comments

Comments
 (0)