49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
api-tests:
|
|
# Replace `docker` with the runner label used by the target Forgejo instance.
|
|
runs-on: docker
|
|
steps:
|
|
# Replace these `uses:` references if the target Forgejo instance does not
|
|
# allow GitHub-hosted actions directly.
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Install API dependencies
|
|
run: pip install -r apps/api/requirements.txt
|
|
|
|
- name: Run repository tests
|
|
run: ./scripts/check-api-tests.sh
|
|
|
|
ui-smoke:
|
|
# Replace `docker` with the runner label used by the target Forgejo instance.
|
|
runs-on: docker
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: "npm"
|
|
|
|
- name: Install UI test dependencies
|
|
run: npm ci
|
|
|
|
- name: Install Playwright browser
|
|
run: npx playwright install --with-deps chromium
|
|
|
|
- name: Run stub UI smoke test
|
|
run: ./scripts/check-ui-smoke.sh
|