prometheus-fail2ban-exporter/.gitea/workflows/unit-tests.yaml
Markus Pesch 9727e49a3f
Some checks failed
continuous-integration/drone/push Build is passing
Run unit tests / cluster (push) Has been cancelled
chore(ci): add unit-test workflow
2025-02-02 18:46:26 +01:00

29 lines
562 B
YAML

name: Run unit tests
on:
pull_request:
branches:
- '*'
types: [ "opened", "reopened", "synchronize" ]
push:
branches:
- '*'
workflow_dispatch: {}
jobs:
cluster:
container:
image: docker.io/library/golang:1.23.5
runs-on:
- docker
steps:
- name: Install tooling
run: |
apt update --yes
apt upgrade --ye s
apt install git npm
- env:
GOPROXY: ${{ vars.GOPROXY }}
GONOSUMDB: ${{ vars.GONOSUMDB }}
name: Execute containerized unit test
run: make test