1
0
mirror of https://github.com/xorcare/testing-go-code-with-postgres.git synced 2025-06-30 23:23:40 +02:00

Update go.yml

Updated the Go version to bring it up to date and cleaned up
unnecessary parameters.

Added the ability to manually run workflow, as it is very handy.
This commit is contained in:
Vasiliy Vasilyuk
2024-02-07 00:15:48 +03:00
parent 9300bb3bf8
commit 9d545d0bad

View File

@ -2,22 +2,21 @@ name: Go
on:
push:
branches:
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
go-version: '1.21.7'
- name: Check that all packages are compiling
run: make build
@ -43,11 +42,10 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
go-version: '1.21.7'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with: