From c1e106c3612da67feed77be0f92d6a9730051989 Mon Sep 17 00:00:00 2001 From: Janez Troha Date: Fri, 11 Aug 2023 16:25:21 +0200 Subject: [PATCH] Fix build --- .github/workflows/go.yml | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8b26191..c9454f0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,9 +5,9 @@ name: Go on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: vuln: @@ -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/*