Files
DiunDashboard/.gitea/workflows/ci.yml
Jean-Luc Makiola a9e468e2bb
Some checks failed
CI / build-test (push) Failing after 5m59s
Update CI workflow to use latest actions and Go version
Updated `actions/checkout` to v6 and `actions/setup-go` to v6 with Go version set to 1.26 for improved compatibility and functionality.

Changelog: other
2026-02-23 17:47:36 +01:00

27 lines
805 B
YAML

name: CI
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
build-test:
runs-on: docker
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.26'
- name: Run tests with coverage
run: |
go test -v -coverprofile=coverage.out ./...
go tool cover -func=coverage.out | tee coverage.txt
cov=$(go tool cover -func=coverage.out | grep total: | awk '{print substr($3, 1, length($3)-1)}')
cov=${cov%.*}
if [ "$cov" -lt 80 ]; then
echo "::warning::Test coverage is below 80% ($cov%)"
fi
- name: Build Docker image
run: docker build -t diun-webhook-dashboard .