mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-24 19:45:41 +00:00
* added logs for debug * fixes * removed logs * using cache item * implemented multiple tests * fixed some unit tests * implemented test for skipping * added multiple tests together * added mark failed * fix on tests * better test implementation + concurrent * fix: fixes on concurrent tests * removed parallel and 1 unit test DOCS: by default the command go test runs in parallel tests for different packages, and default is the number of CPUs available (see go help build) * fixes on go routine * increasing parallelism of once.Do * bumping go to 1.19 for atomic types support * removing redundant check + fixing test concurrency on create Co-authored-by: Mzack9999 <mzack9999@protonmail.com> Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
34 lines
691 B
YAML
34 lines
691 B
YAML
name: 🧪 Functional Test
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**.go'
|
|
workflow_dispatch:
|
|
|
|
|
|
jobs:
|
|
functional:
|
|
name: Functional Test
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.19
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Functional Tests
|
|
env:
|
|
GH_ACTION: true
|
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
run: |
|
|
chmod +x run.sh
|
|
bash run.sh ${{ matrix.os }}
|
|
working-directory: v2/cmd/functional-test
|