Update release workflow #120
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: | |
deploy: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
# Based on: | |
# https://www.postgresql.org/download/linux/ubuntu/ | |
- name: Install latest PostgreSQL client tools | |
run: | | |
sudo apt install -y postgresql-common | |
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y | |
sudo apt purge -y postgresql-client-common | |
sudo apt install -y postgresql-client | |
- name: Checkout source | |
uses: actions/checkout@v2 | |
- name: Start containers | |
run: | | |
docker-compose up -d | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19 | |
- name: Run tests | |
run: | | |
go test ./... |