Skip to content

chore: example now use public chall-manager #87

chore: example now use public chall-manager

chore: example now use public chall-manager #87

Workflow file for this run

name: E2E testing (front)
on:
push:
paths-ignore:
- 'webdocs/**'
- 'res/**'
pull_request:
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
env:
NAME: ctfer
PASSWORD: ctfer
services:
chall-manager:
image: ctferio/chall-manager:v0.1.1@sha256:196f0e1ebf5c0c900b8be04560824538a30cb851baced98fa7276fce727aba95
ports:
- 8080:8080
redis-svc:
image: redis:7.0.10@sha256:92b8b307ee28ed74da17578064c73307ad41e43f422f0b7e4e91498b406c59e3
ports:
- 6379:6379
ctfd:
image: ctfd/ctfd:3.7.5@sha256:7f456b23727286c9df2b58e0b7398cc0196e2b74e4c1c5b3cda7a5b71034637d
ports:
- 8000:8000
options: --mount type=bind,source=${{ github.workspace }},target=/opt/CTFd/CTFd/plugins/ctfd-chall-manager
env:
LOG_LEVEL: DEBUG
PLUGIN_SETTINGS_CM_API_URL: http://chall-manager:8080/api/v1
PLUGIN_SETTINGS_CM_MANA_TOTAL: 15
REDIS_URL: redis://redis-svc:6379
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup basic testing env
uses: ./.github/workflows/setup-testing
with:
ctfd_mode: teams
ctfd_user: ${{ env.NAME }}
ctfd_pass: ${{ env.PASSWORD }}
- name: tests with cypress
uses: cypress-io/github-action@57b70560982e6a11d23d4b8bec7f8a487cdbb71b # v6.7.8
env:
CYPRESS_CTFD_NAME: ${{ env.NAME }}
CYPRESS_CTFD_PASSWORD: ${{ env.PASSWORD }}
CYPRESS_CTFD_URL: "http://localhost:8000"
CYPRESS_SCENARIO_PATH: "${{ github.workspace }}/hack/deploy/demo-deploy.zip"
CYPRESS_PLUGIN_SETTINGS_CM_API_URL: "http://chall-manager:8080/api/v1"
CYPRESS_PLUGIN_SETTINGS_CM_MANA_TOTAL: "10"
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # 4.5.0
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
if-no-files-found: ignore