Skip to content

Merge pull request #37 from shijl0925/create-pull-request/patch #121

Merge pull request #37 from shijl0925/create-pull-request/patch

Merge pull request #37 from shijl0925/create-pull-request/patch #121

Workflow file for this run

name: Test
on:
push:
branches: [master]
pull_request:
branches:
- master
paths:
- "go.mod"
- "go.sum"
- "**.go"
jobs:
go-static-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21
check-latest: true
cache: true
- name: Verify go.mod is tidy
run: |
go mod tidy -go=1.21
git diff --exit-code
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.56.1
args: --verbose --timeout=3m
skip-cache: true
secure-tests:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: -exclude-dir=examples ./...