Skip to content

Release v2.0.2

Release v2.0.2 #69

Workflow file for this run

name: test
on:
- push
- pull_request
jobs:
test:
strategy:
matrix:
go-version:
- 1.20.x
os: [ubuntu-latest]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Start Postgresql
run: |
sudo systemctl start postgresql.service
pg_isready
sudo -u postgres createuser -s -d -r -w runner
# See: https://dev.to/lxxxvi/github-action-using-pre-installed-postgres-5144
- name: Setup Postgres
run: |
psql postgres -c 'CREATE DATABASE oui;'
psql postgres -c "CREATE USER oui WITH PASSWORD 'oui';"
psql postgres -c 'ALTER DATABASE oui OWNER TO oui;'
- name: Go Setup
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Run Tests
run: go test -v ./...
env:
POSTGRES_PASSWORD: oui