Skip to content

chore(deps): bump pg from 1.5.6 to 1.5.7 #3995

chore(deps): bump pg from 1.5.6 to 1.5.7

chore(deps): bump pg from 1.5.6 to 1.5.7 #3995

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
services:
db:
image: postgres:13
ports: ['5432:5432']
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.1
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get -yqq install libpq-dev
sudo apt-get install -y postgresql-client
gem install bundler
bundle install --jobs 4 --retry 3
- name: Migrate Database
env:
RAILS_ENV: test
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres
DATABASE_URL: postgres://postgres:@localhost:5432
run: |
bundle exec rake db:create
bundle exec rake db:migrate
- name: Test
env:
RAILS_ENV: test
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres
DATABASE_URL: postgres://postgres:@localhost:5432
run: |
bundle exec rake assets:precompile
bundle exec rake test
build_image:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v1
- uses: docker/build-push-action@v1
env:
DOCKER_BUILDKIT: 1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: mindleaps/tracker/mindleaps-tracker-canary
build_args: APP_ENV=prod
tag_with_ref: true