51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
name: Build and Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
verify:
|
|
runs-on: container-builder
|
|
container:
|
|
image: debian:trixie-slim
|
|
env:
|
|
GOPROXY: https://gitea.nehmer.net/api/packages/torben/go,https://proxy.golang.org,direct
|
|
steps:
|
|
- name: Install CI Dependencies
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends git nodejs curl unzip ca-certificates
|
|
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: '1.26.x'
|
|
cache: false # temporary fix until we get the tooling on hephaestus running correctly
|
|
|
|
- name: Show Go Version
|
|
run: go version
|
|
|
|
- name: Go Vet
|
|
run: go vet ./...
|
|
|
|
- name: Go Test
|
|
run: go test ./... -v
|
|
|
|
- name: Go Build
|
|
run: |
|
|
mkdir -p dist
|
|
go build -o dist/authproxy ./cmd/authproxy
|
|
|
|
- name: Paket als Artefakt hochladen
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: gitea-mcp-auth-proxy-linux-amd64
|
|
path: dist/authproxy
|
|
retention-days: 7
|