Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
ankithads committed Jun 14, 2024
1 parent d520105 commit 05c205a
Showing 1 changed file with 18 additions and 23 deletions.
41 changes: 18 additions & 23 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,42 @@ name: Run Specs

on:
push:
permissions:
contents: read
# We need write access to the id-token to use workload identity federation
id-token: write
packages: read
# Needed for getting PR labels
pull-requests: read


env:
PGDATABASE: que-test
PGUSER: ubuntu
PGPASSWORD: password
PGHOST: localhost

jobs:
rspec:
runs-on: ubuntu-latest
postgres:
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:11.2
image: postgres:${{ matrix.postgres-version }}
env:
POSTGRES_DB: que-test
POSTGRES_USER: ubuntu
POSTGRES_PASSWORD: password
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432

options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 10
env:
PGDATABASE: que-test
PGUSER: ubuntu
PGPASSWORD: password
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
- name: Run specs
run: |
bundle exec rspec
bundle exec rspec --profile --format progress --format RSpec::Github::Formatter

0 comments on commit 05c205a

Please sign in to comment.