Compare commits

...

10 Commits

Author SHA1 Message Date
benzjeremy
deda923484 ci: fix Go version to 1.27 matching local toolchain
Some checks failed
CI (Arch Linux) / build (push) Has been cancelled
2026-09-17 22:51:12 +02:00
benzjeremy
04765d3ae3 fix(ci): remove go mod tidy step, use build/test/vet only 2026-09-17 09:43:36 +02:00
benzjeremy
5ac115177a fix(ci): handle missing go.sum gracefully 2026-09-17 09:40:43 +02:00
benzjeremy
40020859ef fix(ci): use Go-only Arch CI workflow 2026-09-17 09:29:19 +02:00
benzjeremy
8ceddfd9c5 Add CI report 2026-09-16 23:27:00 +02:00
benzjeremy
aa5d804994 Add CI report 2026-09-16 23:26:46 +02:00
benzjeremy
c62b159e36 Add CI report 2026-09-16 22:38:47 +02:00
benzjeremy
6c8fae8ec5 Add standardized CI pipeline & report 2026-09-16 22:21:31 +02:00
benzjeremy
2ef613ac5b Add CI report 2026-09-16 21:49:38 +02:00
benzjeremy
066103347f Add CI report 2026-09-16 21:49:30 +02:00
4 changed files with 59 additions and 31 deletions

View File

@ -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

30
.github/workflows/ci_arch.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: CI (Arch Linux)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux:latest
env:
CGO_ENABLED: "0"
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
pacman -Sy --noconfirm git base-devel go
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.27'
- name: Build
run: go build ./...
- name: Test
run: go test ./... -v
- name: Lint
run: go vet ./...

View File

@ -0,0 +1,5 @@
# CI Report
Commit: aa5d804994d312bdcd1e71b56d1add92e68626e3
Standardisierte CI-Pipeline vorhanden.

2
go.mod
View File

@ -1,3 +1,3 @@
module github.com/benzjeremy/benzcloud-plugin-web
go 1.22
go 1.27