Skip to content

let ci install postgres-client-16 #88

let ci install postgres-client-16

let ci install postgres-client-16 #88

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 apt-get update
sudo apt-get install -y postgresql-client-16
- name: Test
run: go test -v ./...
env:
RESTIC_PASSWORD: mongorepo