fix(nuclei): adding a nuclei specific environment variable (#234) #167
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Test Injectors" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "release/**" | |
| tags: | |
| - "[0-9]+.[0-9]+.[0-9]*" | |
| pull_request: | |
| concurrency: | |
| group: tests-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| detect-test-files: | |
| name: Detect test files | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.set-matrix.outputs.matrix }} | |
| has_tests: ${{ steps.set-matrix.outputs.has_tests }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - id: set-matrix | |
| name: Build test matrix | |
| env: | |
| GITHUB_REF_NAME: ${{ github.ref_name }} | |
| RELEASE_REF: main | |
| run: python .github/scripts/build_test_matrix.py | |
| test: | |
| name: "Test ${{ matrix.name }}" | |
| needs: detect-test-files | |
| if: needs.detect-test-files.outputs.has_tests == 'true' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{ fromJson(needs.detect-test-files.outputs.matrix) }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Clone pyoaev (satisfies Poetry path dependency) | |
| working-directory: .. | |
| run: git clone -b main https://github.com/OpenAEV-Platform/client-python | |
| - name: Install poetry | |
| run: pip install poetry==2.3.2 && poetry config installer.re-resolve false | |
| - name: Run tests via run_test.sh | |
| env: | |
| GITHUB_REF_NAME: ${{ github.ref_name }} | |
| RELEASE_REF: main | |
| run: bash run_test.sh ${{ matrix.injector }} | |
| - name: Upload coverage to Codecov | |
| if: ${{ !cancelled() && hashFiles(format('{0}/coverage.xml', matrix.injector)) != '' }} | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| root_dir: ${{ github.workspace }} | |
| fail_ci_if_error: false | |
| flags: ${{ matrix.injector }} | |
| verbose: true | |
| - name: Upload test results to Codecov | |
| if: ${{ !cancelled() && hashFiles(format('{0}/junit.xml', matrix.injector)) != '' }} | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| report_type: test_results |