Skip to content

Commit

Permalink
Split pipelines and specify node version
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Oct 2, 2023
1 parent 8a77ecc commit 6bd3622
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 16 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "[CI] Lint"

on:
push:
pull_request:

env:
RUBY_VERSION: 3.0.2
NODE_VERSION: 16.9.1

jobs:
lint-report:
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true

- run: npm ci
name: Install JS deps

- run: bundle exec rubocop -P
name: Lint Ruby files

- run: bundle exec erblint app/{cells,views}/**/*.erb
name: Lint ERB files

- run: npm run lint
name: Lint JS files
19 changes: 3 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
name: Test
name: "[CI] Test"

on:
push:
branches:
- main
pull_request:

env:
RUBY_VERSION: 3.0.2
NODE_VERSION: 16.9.1

jobs:
test:
test-report:
runs-on: ubuntu-20.04
services:
postgres:
Expand Down Expand Up @@ -38,18 +37,6 @@ jobs:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true

- run: npm ci
name: Install JS deps

- run: bundle exec rubocop -P
name: Lint Ruby files

- run: bundle exec erblint app/{cells,views}/**/*.erb
name: Lint ERB files

- run: npm run lint
name: Lint JS files

- name: Setup Database
run: bundle exec rake test_app

Expand Down

0 comments on commit 6bd3622

Please sign in to comment.