prometheus-fail2ban-exporter/.gitea/workflows/unit-tests.yaml
Markus Pesch d330eb6f52
All checks were successful
continuous-integration/drone/push Build is passing
chore(ci): add unit-test workflow
2025-02-02 18:44:32 +01:00

30 lines
563 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