mirror of
https://github.com/laramies/theHarvester.git
synced 2026-09-24 02:24:55 +02:00
Bumps the all-dependencies group with 1 update: [step-security/harden-runner](https://github.com/step-security/harden-runner). Updates `step-security/harden-runner` from 2.21.0 to 2.21.1 - [Release notes](https://github.com/step-security/harden-runner/releases) - [Commits](https://github.com/step-security/harden-runner/compare/05e31511f85b41b11d1cf0ef85d0992719546e2c...e14015d583714f6e62063499dc959a02595150a1) --- updated-dependencies: - dependency-name: step-security/harden-runner dependency-version: 2.21.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
64 lines
1.7 KiB
YAML
64 lines
1.7 KiB
YAML
name: HarvestView browser E2E
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/harvestview-e2e.yml'
|
|
- 'pyproject.toml'
|
|
- 'uv.lock'
|
|
- 'theHarvester/lib/api/**'
|
|
- 'tests/e2e/**'
|
|
- 'tests/lib/test_api_v1.py'
|
|
- 'tests/lib/test_harvestview_ui.py'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
harvestview-e2e:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
|
|
steps:
|
|
- name: Harden the runner
|
|
uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Check out repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install uv and Python
|
|
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
|
|
with:
|
|
python-version: '3.14'
|
|
enable-cache: true
|
|
cache-dependency-glob: uv.lock
|
|
|
|
- name: Install project dependencies
|
|
run: uv sync --all-groups --frozen
|
|
|
|
- name: Install Chromium
|
|
run: uv run playwright install --with-deps chromium
|
|
|
|
- name: Run HarvestView browser tests
|
|
run: >-
|
|
uv run pytest -m harvestview_e2e
|
|
--browser chromium
|
|
--tracing=retain-on-failure
|
|
--screenshot=only-on-failure
|
|
--output=test-results
|
|
|
|
- name: Upload browser test artifacts
|
|
if: ${{ failure() }}
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: harvestview-browser-test-results
|
|
path: test-results/
|
|
if-no-files-found: warn
|
|
retention-days: 7
|