Add standardized CI pipeline & report
This commit is contained in:
parent
28f9d1f918
commit
9795b06731
53
.github/workflows/ci.yml
vendored
53
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
## CI Pipeline Report
|
|
||||||
|
|
||||||
- Added standardized GitHub Actions CI pipeline.
|
|
||||||
- Commit: 7f76da0142987413384b4734f92428faa78b3944
|
|
||||||
Loading…
Reference in New Issue
Block a user