Skip to content

Commit

Permalink
Add Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Sep 9, 2023
1 parent f65fa8e commit 681f55a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/legacy_ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
TEST_CONFIG: ./spec/config.github.yml

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Database
run: |
psql -c "CREATE ROLE runner SUPERUSER LOGIN CREATEDB;" -U postgres -h localhost
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: RuboCop

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

permissions:
contents: read

jobs:
test:
name: RuboCop
runs-on: ubuntu-latest

env:
BUNDLE_GEMFILE: gemfiles/rubocop.gemfile

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
rubygems: latest
bundler-cache: true
- name: RuboCop
run: bundle exec rubocop
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
continue-on-error: ${{ matrix.channel != 'stable' }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Database
run: |
psql -c "CREATE ROLE runner SUPERUSER LOGIN CREATEDB;" -U postgres -h localhost
Expand Down

0 comments on commit 681f55a

Please sign in to comment.