robot-u-site/.forgejo/workflows/ci.yml
kacper 853e99ca5f
Some checks failed
CI / check (push) Failing after 8s
Prepare deployment and Forgejo CI
2026-04-14 20:17:29 -04:00

40 lines
964 B
YAML

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
check:
runs-on: docker
steps:
- name: Install SSH clone key
run: |
set -euo pipefail
mkdir -p ~/.ssh
printf '%s\n' "${{ secrets.CI_REPO_SSH_KEY }}" > ~/.ssh/robot_u_site_clone
chmod 600 ~/.ssh/robot_u_site_clone
ssh-keyscan aksal.cloud >> ~/.ssh/known_hosts
cat > ~/.ssh/config <<'EOF'
Host aksal.cloud
IdentityFile ~/.ssh/robot_u_site_clone
IdentitiesOnly yes
EOF
- name: Clone repository over SSH
run: |
set -euo pipefail
git clone --depth 1 git@aksal.cloud:Robot-U/robot-u-site.git robot-u-site
- name: Check Python
run: |
cd robot-u-site
./scripts/check_python_quality.sh
- name: Check Frontend
run: |
cd robot-u-site
./scripts/check_frontend_quality.sh