Gem2Browser/.forgejo/workflows/test.yml

19 lines
683 B
YAML
Raw Normal View History

2025-01-18 18:49:10 -08:00
name: Test web app
on: [push,workflow_dispatch]
jobs:
check:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Install dependencies
2025-01-18 18:55:46 -08:00
run: apt update && apt install python3-pip curl wget -y && pip install --break-system-packages flask hypercorn pyOpenSSL
2025-01-18 18:54:10 -08:00
- 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
2025-01-18 18:55:46 -08:00
- name: Test server certificate generation
run: wget http://localhost:2009/gencert.zip && unzip gencert.zip
2025-01-18 18:54:10 -08:00
- name: Kill server
run: pkill python3