From 6e04f066caf12af1a2b281009e910cb109e42bd2 Mon Sep 17 00:00:00 2001 From: benzjeremy <313434618+benzjeremy@users.noreply.github.com> Date: Wed, 16 Sep 2026 22:21:33 +0200 Subject: [PATCH] Add standardized CI pipeline & report --- .github/workflows/ci.yml | 53 +++++++++++++++++--------------------- dokumentation/ci_report.md | 7 +++-- 2 files changed, 26 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 e524476..e44f0aa 100644 --- a/dokumentation/ci_report.md +++ b/dokumentation/ci_report.md @@ -1,4 +1,3 @@ -## CI Pipeline Report - -- Added standardized GitHub Actions CI pipeline. -- Commit: a3808750935eda9aeb5da5976fed156fccca8511 +# CI‑Pipeline Report +*Date:* 2026-09-16 22:13 +*Repo:* benzcloud-plugin-mail/