Release v2.0.6 #78
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: 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 |