Skip to content

Update deps for security recommend #342

Update deps for security recommend

Update deps for security recommend #342

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go 1.19
uses: actions/setup-go@v5
with:
go-version: '1.19'
cache: false
- name: Golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
args: --timeout 3m --verbose --config=.golangci.yml --out-${NO_FUTURE}format colored-line-number
only-new-issues: true
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: '1.19'
cache: false
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Test
run: go test -v ./...