mirror of
https://github.com/jaypyles/Scraperr.git
synced 2026-05-04 16:30:39 +00:00
20dccc5527
* fix: restyle the element table * chore: wip ui * wip: edit styles * feat: add html return * fix: build * fix: workflow * fix: workflow * fix: workflow * fix: workflow * fix: workflow * fix: workflow * fix: workflow * fix: cypress test * chore: update photo [skip ci]
32 lines
697 B
YAML
32 lines
697 B
YAML
name: Cypress Tests
|
|
|
|
on:
|
|
workflow_call:
|
|
secrets:
|
|
openai_key:
|
|
required: true
|
|
|
|
|
|
jobs:
|
|
cypress-tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Run Cypress Tests
|
|
id: run-tests
|
|
uses: ./.github/actions/run-cypress-tests
|
|
with:
|
|
openai_key: ${{ secrets.openai_key }}
|
|
|
|
- name: Check container logs on failure
|
|
if: steps.run-tests.conclusion == 'failure'
|
|
run: |
|
|
echo "Cypress tests failed. Dumping container logs..."
|
|
docker logs scraperr_api || true
|
|
|
|
- name: Fail job if Cypress failed
|
|
if: steps.run-tests.conclusion == 'failure'
|
|
run: exit 1
|
|
|