Gem2Browser/.forgejo/workflows/test.yml
swee edbf7a39d3
All checks were successful
Test web app / check (push) Successful in 32s
Update .forgejo/workflows/test.yml
2025-01-18 18:54:10 -08:00

19 lines
No EOL
627 B
YAML

name: Test web app
on: [push,workflow_dispatch]
jobs:
check:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: apt update && apt install python3-pip curl -y && pip install --break-system-packages flask hypercorn pyOpenSSL
- name: Run server
run: python3 server.py &
- 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
run: curl localhost:2009
- name: Kill server
run: pkill python3