Bump pg from 1.4.6 to 1.5.9 #2764
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
name: Zooni CI | |
on: | |
pull_request: | |
push: { branches: master } | |
env: | |
DATABASE_URL: postgresql://panoptes:password@localhost/gh_ci_test | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:11-alpine | |
env: | |
POSTGRES_USER: panoptes | |
POSTGRES_PASSWORD: password | |
ports: ['5432:5432'] | |
options: | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
continue-on-error: true | |
strategy: | |
matrix: | |
gemfile: | |
- Gemfile | |
# - Gemfile.next | |
ruby: | |
- 2.7 | |
spec-commands: | |
- 'spec/controllers/api/v1/[a-m]*.rb spec/counters spec/operations spec/serializers spec/workers' | |
- 'spec/controllers/api/v1/[n-s]*.rb' | |
- 'spec/controllers/api/v1/[t-z]*.rb spec/controllers/**.rb spec/lib spec/requests' | |
- 'spec/controllers/api/*.rb spec/mailers spec/middleware spec/models spec/policies spec/routes spec/services' | |
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps | |
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check specs | |
run: | | |
mkdir -p tmp | |
find spec -maxdepth 1 -type d | grep spec/ > tmp/curr_spec_dirs.txt | |
if grep -Fxvc -f spec/known_dirs.txt tmp/curr_spec_dirs.txt; then echo 'Detected unkown Spec directories, check the spec/known_dirs.txt!'; exit 1; fi | |
- name: Check for focus specs | |
run: ./scripts/no_focus.sh | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Install PG Client | |
run: | | |
sudo apt-get -yqq install libpq-dev | |
- name: Setup DB and configs | |
run: | | |
RAILS_ENV=test bundle exec rake db:setup | |
RAILS_ENV=test bundle exec rake configure:local | |
- name: Run tests | |
run: bundle exec rspec ${{ matrix.spec-commands }} | |
env: | |
RAILS_ENV: test | |
DISABLE_TEST_LOGGING: 1 | |
DEPRECATION_WARNINGS_SILENCED: 1 |