From 1d63750e8792b71676e84b421884da2577ca440b Mon Sep 17 00:00:00 2001 From: Andrew Walsh Date: Sun, 26 Nov 2023 23:08:49 -0800 Subject: [PATCH] Update PR action. --- .github/workflows/pull_request.yml | 8 +++++--- go.mod | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 3ba0782..f9ba1b7 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -7,7 +7,7 @@ permissions: contents: read jobs: - build_test: + lint_build_test: runs-on: ubuntu-latest steps: - name: Checkout code @@ -16,11 +16,13 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: 1.20 + go-version-file: "go.mod" + - name: Lint uses: golangci/golangci-lint-action@v3 with: - version: v1.54 + version: v1.52.2 + - name: Build and test run: | go build -v ./... diff --git a/go.mod b/go.mod index 96467f4..5cc8b8b 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module awalsh128.com/cache-apt-pkgs-action -go 1.18 +go 1.20