mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-25 04:45:25 +00:00
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from v2 to v2.5.2. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/v2...5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018) Signed-off-by: dependabot[bot] <support@github.com>
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
name: Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
name: golangci-lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Run golangci-lint
|
|
uses: golangci/golangci-lint-action@v2.5.2
|
|
with:
|
|
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
|
version: v1.33
|
|
args: --timeout 5m
|
|
working-directory: v2/
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.15
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Test
|
|
run: go test ./...
|
|
working-directory: v2/
|
|
|
|
- name: Integration Tests
|
|
run: bash run.sh
|
|
working-directory: integration_tests/
|
|
|
|
- name: Build
|
|
run: go build .
|
|
working-directory: v2/cmd/nuclei/
|