nuclei/.github/workflows/build-test.yml

43 lines
900 B
YAML
Raw Normal View History

2021-06-15 16:01:56 +00:00
name: 🙏🏻 Build Test
2020-06-01 19:34:57 +00:00
on:
push:
pull_request:
2021-06-15 16:01:56 +00:00
workflow_dispatch:
jobs:
lint:
2021-06-15 16:01:56 +00:00
name: Lint Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run golangci-lint
2021-06-13 18:24:53 +00:00
uses: golangci/golangci-lint-action@v2
with:
2021-05-25 22:07:59 +00:00
version: latest
args: --timeout 5m
2020-10-16 20:07:00 +00:00
working-directory: v2/
2021-02-27 07:01:17 +00:00
2020-06-01 19:34:57 +00:00
build:
2021-06-15 16:01:56 +00:00
name: Test Builds
runs-on: ubuntu-latest
2020-06-01 19:34:57 +00:00
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
2021-02-27 07:01:17 +00:00
go-version: 1.15
2020-06-01 19:34:57 +00:00
- name: Check out code
uses: actions/checkout@v2
- name: Test
2021-02-27 07:01:17 +00:00
run: go test ./...
working-directory: v2/
- name: Integration Tests
2021-02-27 07:08:24 +00:00
run: bash run.sh
working-directory: integration_tests/
2020-06-01 19:34:57 +00:00
- name: Build
run: go build .
2021-06-15 16:01:56 +00:00
working-directory: v2/cmd/nuclei/