Merge pull request #370 from projectdiscovery/build-fix

build fix
master
PD-Team 2021-02-17 11:20:06 +05:30 committed by GitHub
commit f1719d5ec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 19 deletions

View File

@ -1,4 +1,5 @@
name: Build
on:
push:
branches:
@ -6,40 +7,28 @@ on:
pull_request:
jobs:
lint:
name: golangci-lint
golangci-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v1
uses: golangci/golangci-lint-action@v2.4.0
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.31
args: --timeout 5m
working-directory: v2/
# Optional: working directory, useful for monorepos
# working-directory: somedir
# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0
# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.13
- name: Check out code
uses: actions/checkout@v2
go-version: 1.15
- name: Test
run: go test .
@ -47,4 +36,4 @@ jobs:
- name: Build
run: go build .
working-directory: v2/cmd/subfinder/
working-directory: v2/cmd/subfinder/