Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI
on: push
jobs:
test:
prepare:
runs-on: ubuntu-latest
steps:
- name: Install sqlite3
Expand All @@ -14,6 +14,10 @@ jobs:
run: |
gem install bundler
bundle install --jobs 4 --retry 3 --without=production
test:
runs-on: ubuntu-latest
needs: prepare
steps:
- name: Set up the test database
run: |
RAILS_ENV=test bundle exec rake db:setup
Expand All @@ -22,17 +26,8 @@ jobs:
bundle exec rake
lint:
runs-on: ubuntu-latest
needs: prepare
steps:
- name: Install sqlite3
run: sudo apt-get install libsqlite3-dev
- uses: eregon/use-ruby-action@master
with:
ruby-version: "2.7"
- uses: actions/checkout@v1
- name: Install dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3 --without=production
- name: Run the linter
run: |
bundle exec rubocop