prometheus-fail2ban-exporter/.gitea/workflows/unit-tests.yaml
Markus Pesch 01af95399d
All checks were successful
Run unit tests / test (push) Successful in 5m41s
continuous-integration/drone/push Build is passing
chore(ci): checkout source code
2025-02-02 19:08:49 +01:00

30 lines
615 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:
- ubuntu-latest
steps:
- name: Install tooling
run: |
apt-get update --yes
apt-get upgrade --yes
apt-get install --yes git npm
- uses: actions/checkout@v4
- env:
GOPROXY: ${{ vars.GOPROXY }}
GONOSUMDB: ${{ vars.GONOSUMDB }}
name: Execute containerized unit test
run: make test