Set up CI

This commit is contained in:
Andras Schmelczer 2026-06-06 19:36:15 +01:00
parent 5dcf27bb9f
commit 52eb07a993
12 changed files with 223 additions and 8218 deletions

View file

@ -2,13 +2,13 @@ name: Deploy to Pages
on:
push:
branches: ['main']
branches: ["main"]
pull_request:
branches: ['main']
branches: ["main"]
workflow_dispatch:
concurrency:
group: 'pages'
group: "pages"
cancel-in-progress: false
jobs:
@ -18,11 +18,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Validate static frontend
run: |
test -f frontend/index.html
test -f frontend/fizika.json
- name: Copy frontend to host pages mount
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: http://forgejo:3000/andras/ci-actions/deploy-pages@main

View file

@ -2,10 +2,9 @@ name: Build and Publish Docker Image
on:
push:
branches: ['main']
tags: ['v*']
branches: ["main"]
pull_request:
branches: ['main']
branches: ["main"]
workflow_dispatch:
jobs:

View file

@ -0,0 +1,30 @@
name: Test
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
test:
runs-on: docker
steps:
- name: Checkout repository
uses: https://code.forgejo.org/actions/checkout@v4
- name: Install root tooling
run: npm ci
- name: Check formatting
run: npm run format:check
- name: Install backend dependencies
run: npm ci
working-directory: backend
- name: Run backend tests
run: npm test
working-directory: backend