Skip to content

Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0 #27

Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0

Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0 #27

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
name: Go ${{ matrix.go }}
runs-on: ubuntu-latest
strategy:
matrix:
go:
- '1.19'
- '1.20'
fail-fast: false
timeout-minutes: 10
env:
POSTGES_DB: pg_dba_test
POSTGES_HOST: "127.0.0.1"
POSTGRES_USER: postgres
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Install coverage merging tool
run: go install github.com/wadey/gocovmerge@latest
- name: Start Postgres # TODO: Come back and get rid of the sleep with a health check
run: |
docker-compose up -d
sleep 15
- name: Seed DB
env:
PGHOST: "127.0.0.1"
PGUSER: postgres
run: |
psql -c 'create database pg_dba_test;'
cat test-schema.sql | psql > /dev/null
- name: Run Tests
run: make test
- name: Upload Coverage
uses: codecov/codecov-action@v3
docker-build:
name: Docker Build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- run: docker build -t pg-dba .
docs:
name: Test Documentation Build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- run: make docs
working-directory: docs