Skip to content

chore: bump actions/checkout from 4.1.5 to 4.1.6 #209

chore: bump actions/checkout from 4.1.5 to 4.1.6

chore: bump actions/checkout from 4.1.5 to 4.1.6 #209

Workflow file for this run

# this workflow will run on all pushes.
on:
push:
name: "push"
jobs:
# run golangci-lint to lint the golang source code.
# the configuration is at /.golangci.yml.
linter:
runs-on: ubuntu-latest
steps:
-
name: Checkout code
uses: actions/checkout@v4.1.6
-
name: Get go.mod details
uses: Eun/go-mod-details@v1.0.6
id: go-mod-details
-
name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ steps.go-mod-details.outputs.go_version }}
-
name: Lint
uses: golangci/golangci-lint-action@v6.0.1
with:
version: v1.55.2
args: --out-format=colored-line-number
# optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
# use nancy to scan for vulnerabilities.
vulnerability_scanner:
name: Vulnerability scanner
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v4.1.6
-
uses: actions/setup-go@v5
# we cannot use nancy-github-action because it is outdated, so it's better to use the latest
# docker image for the validation
-
name: nancy
run: go list -json -m all | docker run -i sonatypecommunity/nancy:latest
# run golang test suite and collect their coverage.
test:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
-
name: Checkout code
uses: actions/checkout@v4.1.6
-
name: Get go.mod details
uses: Eun/go-mod-details@v1.0.6
id: go-mod-details
-
name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ steps.go-mod-details.outputs.go_version }}
-
name: Test
run: go test -v -count=1 -coverprofile="coverage-${{ matrix.platform }}-${{ steps.go-mod-details.outputs.go_version }}.cov" -covermode=atomic ./...
-
name: Send coverage
uses: shogo82148/actions-goveralls@v1.9.0
with:
path-to-profile: coverage-${{ matrix.platform }}-${{ steps.go-mod-details.outputs.go_version }}.cov
flag-name: ${{ matrix.platform }}-${{ steps.go-mod-details.outputs.go_version }}
parallel: true
# notifies that all test jobs are finished.
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1.9.0
with:
parallel-finished: true
# draft your next release notes as pull requests are merged into "master"
# the configuration is at /.github/release-drafter.yml.
update_release_draft:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
steps:
- uses: release-drafter/release-drafter@v6
if: github.ref_name == github.event.repository.default_branch
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}