Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
dz0ny committed Aug 11, 2023
1 parent 7b620ba commit c1e106c
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Go

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
vuln:
Expand All @@ -33,21 +33,25 @@ jobs:
# Maps tcp port 5432 on service container to the host
- 5432:5432
steps:
- uses: actions/checkout@v3
- run: .pgsql/testdb.sh
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: stable
- uses: actions/checkout@v3
- run: .pgsql/testdb.sh
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: stable
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
install-only: true

- name: Build
run: make build
- name: Build
run: make build

- name: Test
run: go test -v ./...
- name: Test
run: go test -v ./...

- name: Upload assets
uses: actions/upload-artifact@v3
with:
name: pg-subsetter
path: dist/*
- name: Upload assets
uses: actions/upload-artifact@v3
with:
name: pg-subsetter
path: dist/*

0 comments on commit c1e106c

Please sign in to comment.