Add standardized CI pipeline & report

This commit is contained in:
benzjeremy 2026-09-16 22:21:35 +02:00
parent 61620a226f
commit 538f5949b5
2 changed files with 26 additions and 34 deletions

View File

@ -1,44 +1,37 @@
name: CI name: CI
on: on:
push: push:
branches: [main] paths:
pull_request: - "**/*.go"
- "**/*.js"
- "**/*.py"
- ".github/workflows/ci.yml"
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: archlinux:latest image: archlinux:latest
steps: steps:
- name: Checkout - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install dependencies
- name: Update pacman and install base tools
run: | run: |
pacman -Sy --noconfirm archlinux-keyring pacman -Sy --noconfirm git base-devel go nodejs npm python-pip
pacman -S --noconfirm base-devel git go nodejs npm python-pip || true
- name: Build Go - name: Build Go
run: go build ./... || true run: |
go build ./...
- name: Lint Go
run: |
go vet ./...
- name: Test Go - name: Test Go
run: go test -race ./... || true run: |
go test -race ./...
- name: Install Node dependencies - name: Lint JS
run: npm ci || true run: |
npm ci && npx eslint .
- 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
- name: Lint Python - name: Lint Python
run: flake8 . || true run: |
pip install flake8 && flake8 .
- name: Test Python - name: Run tests (Node)
run: pytest || true run: |
npm test

View File

@ -1,4 +1,3 @@
## CI Pipeline Report # CIPipeline Report
*Date:* 2026-09-16 22:13
- Added standardized GitHub Actions CI pipeline. *Repo:* benzcloud-plugin-chat/
- Commit: 1ee6717e6665bf4fb5f26c647bd6cb255f5d0982