test runner services
Some checks failed
Build & Deploy / build (push) Failing after 2s
Build & Deploy / deploy (push) Has been skipped
CI / test-and-build (push) Successful in 1m36s

This commit is contained in:
djoser
2026-07-27 13:25:25 +00:00
parent 9c99027ea6
commit c202734a8c
4 changed files with 57 additions and 3 deletions

View File

@@ -9,5 +9,6 @@ WEBHOOK_SECRET=
REPO_DIR=/home/djoser/webgpu-portfolio REPO_DIR=/home/djoser/webgpu-portfolio
# Bind address and port for the webhook listener # Bind address and port for the webhook listener
LISTEN_HOST=0.0.0.0 # Must be 127.0.0.1 — the webhook is served through system nginx proxy
LISTEN_HOST=127.0.0.1
LISTEN_PORT=9000 LISTEN_PORT=9000

32
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,32 @@
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test-and-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Type-check
run: npm run typecheck
- name: Tests
run: npm test
- name: Build
run: npm run build

View File

@@ -0,0 +1,22 @@
[Unit]
Description=Gitea Actions Runner (webgpu-portfolio)
After=network.target docker.service
Requires=docker.service
[Service]
Type=simple
User=djoser
ExecStart=/usr/local/bin/act_runner daemon --config /home/djoser/.gitea-act-runner/config.yaml
WorkingDirectory=/home/djoser/.gitea-act-runner
Restart=always
RestartSec=5
# Security
NoNewPrivileges=yes
PrivateTmp=yes
ProtectSystem=strict
ProtectHome=read-only
ReadWritePaths=/home/djoser/.gitea-act-runner /home/djoser/.cache/actcache /var/run/docker.sock
[Install]
WantedBy=multi-user.target

View File

@@ -17,8 +17,7 @@ NoNewPrivileges=yes
PrivateTmp=yes PrivateTmp=yes
ProtectSystem=strict ProtectSystem=strict
ProtectHome=read-only ProtectHome=read-only
ReadWritePaths=/home/djoser/webgpu-portfolio ReadWritePaths=/home/djoser/webgpu-portfolio /var/run/docker.sock /home/djoser/.docker
ReadOnlyPaths=/var/run/docker.sock
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target