Gem2Browser/.forgejo/workflows/test.yml
swee e625de7055
Some checks failed
Test web app / check (push) Failing after 34s
Update .forgejo/workflows/test.yml
2025-01-18 19:59:34 -08:00

24 lines
No EOL
819 B
YAML

name: Test web app
on: [push,workflow_dispatch]
jobs:
check:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: apt update && apt install python3-pip curl wget -y && pip install --break-system-packages flask hypercorn pyOpenSSL
- name: Run server
run: python3 -u server.py > log.log &
- name: Test server homepage
run: curl localhost:2009
- name: Test server relay
run: curl localhost:2009/gem?gemini=gem.swee.codes
- name: Test server certificate generation
run: wget http://localhost:2009/gencert.zip && unzip gencert.zip
- name: Kill server
if: always()
run: kill %%
- name: Show logs
if: always()
run: cat log.log