mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-09-20 01:57:16 +00:00
Add Linter for Go code.
This commit is contained in:
parent
189ae35b68
commit
3b5900ec5a
8
.github/workflows/pull_request.yml
vendored
8
.github/workflows/pull_request.yml
vendored
|
@ -3,6 +3,9 @@ on:
|
|||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build_test:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -14,7 +17,10 @@ jobs:
|
|||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.20
|
||||
|
||||
- name: Lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: v1.54
|
||||
- name: Build and test
|
||||
run: |
|
||||
go build -v
|
||||
|
|
Loading…
Reference in a new issue