chore(deps): bump actions/setup-go from 5.0.1 to 5.0.2 #71
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Golang CI | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
paths: | |
- "**.go" | |
- "go.mod" | |
- "go.sum" | |
- ".github/workflows/golangci.yml" | |
pull_request: | |
paths: | |
- "**.go" | |
- "go.mod" | |
- "go.sum" | |
- ".github/workflows/golangci.yml" | |
concurrency: | |
group: nuvola-ci-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
pull-requests: read | |
security-events: write | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
# v4.1.7 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 | |
# v5.0.2 | |
with: | |
go-version: "oldstable" | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 | |
# v6.0.1 | |
with: | |
version: latest | |
only-new-issues: true | |
args: --timeout 300s --exclude-dirs="(^|/)assets($|/)" --enable misspell --enable gofmt --enable goimports --enable whitespace | |
gosec: | |
runs-on: ubuntu-latest | |
env: | |
GO111MODULE: on | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
# v4.1.7 | |
- name: Run Gosec Security Scanner | |
uses: securego/gosec@6fbd381238e97e1d1f3358f0d6d65de78dcf9245 | |
# V.2.20.0 | |
with: | |
args: "-exclude-dir=assets -no-fail -fmt sarif -out results.sarif ./..." | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@4b6aa0b07da05d6e43d0e5f9c8596a6532ce1c85 | |
# v2.15.3 | |
with: | |
sarif_file: ./results.sarif | |
go-build-and-test: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
# v4.1.7 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 | |
# v5.0.2 | |
with: | |
go-version-file: "go.mod" | |
cache-dependency-path: | | |
go.sum | |
- name: Install dependencies | |
run: go get . | |
- name: Build | |
run: go build ./... | |
- name: Test with the Go CLI | |
run: go test ./... |