Skip to content

further postgres-client-16 ci changes #89

further postgres-client-16 ci changes

further postgres-client-16 ci changes #89

Workflow file for this run

name: Build & Test
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --clean --snapshot --skip-publish -f build/ci/.goreleaser.yml
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Install restic
run: |
wget https://github.com/restic/restic/releases/download/v0.11.0/restic_0.11.0_linux_amd64.bz2
bzip2 -d restic_0.11.0_linux_amd64.bz2
sudo mv restic_0.11.0_linux_amd64 /usr/local/bin/restic
sudo chown root:root /usr/local/bin/restic
sudo chmod +x /usr/local/bin/restic
- name: install redis-cli
run: sudo apt-get install redis-tools
- name: Update postgres tools
run: |
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y postgresql-client
- name: Test
run: go test -v ./...
env:
RESTIC_PASSWORD: mongorepo