add tests, put on ci

This commit is contained in:
counterweight 2025-10-18 19:05:34 +02:00
parent cd4f39fcd4
commit df66720f33
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
5 changed files with 4073 additions and 65 deletions

View file

@ -1,4 +1,4 @@
name: Build and Push Docker Image
name: CI/CD Pipeline
on:
push:
@ -11,7 +11,26 @@ env:
IMAGE_NAME: ${{ github.repository }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
build-and-push:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read