-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
63 additions
and
68 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
rspec: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby_version: ["2.6", "2.7", "3.0"] | ||
postgres-version: ["12", "13", "14", "15", "16"] | ||
|
||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgres:${{ matrix.postgres-version }} | ||
env: | ||
POSTGRES_DB: que-test | ||
POSTGRES_USER: ubuntu | ||
POSTGRES_PASSWORD: password | ||
ports: | ||
- 5432:5432 | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 10 | ||
lock_database: | ||
image: postgres:${{ matrix.postgres-version }} | ||
env: | ||
POSTGRES_DB: lock-test | ||
POSTGRES_USER: ubuntu | ||
POSTGRES_PASSWORD: password | ||
ports: | ||
- 5434:5434 | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 10 | ||
env: | ||
PGDATABASE: que-test | ||
PGUSER: ubuntu | ||
PGPASSWORD: password | ||
PGHOST: localhost | ||
LOCK_PGDATABASE: lock-test | ||
LOCK_PGUSER: ubuntu | ||
LOCK_PGPASSWORD: password | ||
LOCK_PGHOST: localhost | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
ruby-version: "${{ matrix.ruby-version }}" | ||
- name: Run specs | ||
run: | | ||
bundle exec rspec |
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 |
---|---|---|
|
@@ -22,6 +22,6 @@ group :test do | |
end | ||
|
||
gem 'prometheus-client', '~> 1.0' | ||
gem 'prometheus_gcstat', git: '[email protected]:gocardless/prometheus_gcstat_ruby' | ||
# gem 'prometheus_gcstat', git: '[email protected]:gocardless/prometheus_gcstat_ruby' | ||
|
||
gemspec |
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