mirror of https://github.com/daffainfo/nuclei.git
27 lines
500 B
YAML
27 lines
500 B
YAML
name: 🙏🏻 Lint Test
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**.go'
|
|
- '**.mod'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: 1.21.x
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Run golangci-lint
|
|
uses: golangci/golangci-lint-action@v3.6.0
|
|
with:
|
|
version: latest
|
|
args: --timeout 5m |