From 9795b06731f2eb1c37dc4b6357bdda67a85f4d3a Mon Sep 17 00:00:00 2001 From: benzjeremy <313434618+benzjeremy@users.noreply.github.com> Date: Wed, 16 Sep 2026 22:21:30 +0200 Subject: [PATCH] Add standardized CI pipeline & report --- .github/workflows/ci.yml | 53 +++++++++++++++++--------------------- dokumentation/ci_report.md | 4 --- 2 files changed, 23 insertions(+), 34 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bad27b..49344b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,44 +1,37 @@ name: CI - on: push: - branches: [main] - pull_request: - + paths: + - "**/*.go" + - "**/*.js" + - "**/*.py" + - ".github/workflows/ci.yml" jobs: build: runs-on: ubuntu-latest container: image: archlinux:latest steps: - - name: Checkout + - name: Checkout code uses: actions/checkout@v4 - - - name: Update pacman and install base tools + - name: Install dependencies run: | - pacman -Sy --noconfirm archlinux-keyring - pacman -S --noconfirm base-devel git go nodejs npm python-pip || true - + pacman -Sy --noconfirm git base-devel go nodejs npm python-pip - name: Build Go - run: go build ./... || true - + run: | + go build ./... + - name: Lint Go + run: | + go vet ./... - name: Test Go - run: go test -race ./... || true - - - name: Install Node dependencies - run: npm ci || true - - - name: Lint Node - run: npm run lint || true - - - name: Test Node - run: npm test || true - - - name: Install Python dependencies - run: pip install -r requirements.txt || true - + run: | + go test -race ./... + - name: Lint JS + run: | + npm ci && npx eslint . - name: Lint Python - run: flake8 . || true - - - name: Test Python - run: pytest || true + run: | + pip install flake8 && flake8 . + - name: Run tests (Node) + run: | + npm test diff --git a/dokumentation/ci_report.md b/dokumentation/ci_report.md index 5aa9ffc..e69de29 100644 --- a/dokumentation/ci_report.md +++ b/dokumentation/ci_report.md @@ -1,4 +0,0 @@ -## CI Pipeline Report - -- Added standardized GitHub Actions CI pipeline. -- Commit: 7f76da0142987413384b4734f92428faa78b3944