From 9d545d0badf7abdbce7432ab4836b170409f874b Mon Sep 17 00:00:00 2001 From: Vasiliy Vasilyuk Date: Wed, 7 Feb 2024 00:15:48 +0300 Subject: [PATCH] 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. --- .github/workflows/go.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5b6fb81..76afb97 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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: