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