-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace travis with github workflows
- Loading branch information
Showing
4 changed files
with
49 additions
and
11 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Run tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby: ['2.6'] | ||
services: | ||
db: | ||
image: postgres:12 | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
ports: ['5432:5432'] | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
name: Ruby ${{ matrix.ruby }} test | ||
env: | ||
DATABASE_URL: postgres://postgres:[email protected] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
|
||
- name: Install bundler | ||
run: gem install bundler | ||
|
||
- name: Install dependencies | ||
run: bundle install | ||
|
||
- name: Set up database | ||
run: bundle exec rake db:{create,migrate} | ||
|
||
- name: Run tests | ||
run: bundle exec rspec | ||
|
||
- name: Lint code | ||
run: bundle exec rubocop | ||
|
||
- name: Audit code | ||
run: bundle exec bundler-audit check --update |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters