prometheus-fail2ban-exporter/.gitea/workflows/unit-tests.yaml

29 lines
559 B
YAML

name: Run unit tests
on:
pull_request:
branches:
- '*'
types: [ "opened", "reopened", "synchronize" ]
push:
branches:
- '*'
workflow_dispatch: {}
jobs:
test:
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