Skip to content

all: update dependencies #79

all: update dependencies

all: update dependencies #79

Workflow file for this run

# Copyright (c) 2024 Joshua Sing <[email protected]>
# Use of this source code is governed by the MIT License,
# which can be found in the LICENSE file.
# GitHub Actions workflow to build and test.
name: "Go"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
GO_VERSION: "1.23.x"
jobs:
vulncheck:
name: "Vulnerability Check"
runs-on: "ubuntu-latest"
permissions:
contents: read
steps:
- name: "Checkout repository"
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: "Setup Go ${{ env.GO_VERSION }}"
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: "${{ env.GO_VERSION }}"
cache: true
check-latest: true
- name: "Install govulncheck"
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: "Run govulncheck"
run: govulncheck ./...
build:
name: "Build (${{ matrix.os }})"
runs-on: "${{ matrix.os }}"
permissions:
contents: read
strategy:
matrix:
os: ["ubuntu-latest"]
steps:
- name: "Checkout repository"
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: "Setup Go ${{ env.GO_VERSION }}"
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: "${{ env.GO_VERSION }}"
cache: true
check-latest: true
- name: "Download dependencies"
run: go mod download
- name: "Verify dependencies"
run: go mod verify
- name: "Build"
run: go build ./...
- name: "Test"
run: go test ./...
lint:
name: "Lint"
runs-on: "ubuntu-latest"
permissions:
contents: read
steps:
- name: "Checkout repository"
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: "Setup Go ${{ env.GO_VERSION }}"
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: "${{ env.GO_VERSION }}"
cache: true
check-latest: true
- name: "Run golangci-lint"
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6.2.0