Skip to content

chore(deps): bump actions/setup-go from 5.0.2 to 5.1.0 #95

chore(deps): bump actions/setup-go from 5.0.2 to 5.1.0

chore(deps): bump actions/setup-go from 5.0.2 to 5.1.0 #95

Workflow file for this run

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@d632683dd7b4114ad314bca15554477dd762a938
# v4.2.0
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
# v5.1.0
with:
go-version: "oldstable"
- name: golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8
# v6.1.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@d632683dd7b4114ad314bca15554477dd762a938
# v4.2.0
- name: Run Gosec Security Scanner
uses: securego/gosec@d4617f51baf75f4f809066386a4f9d27b3ac3e46
# V.2.21.4
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@d632683dd7b4114ad314bca15554477dd762a938
# v4.2.0
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
# v5.1.0
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 ./...