prometheus-fail2ban-exporter/.gitea/workflows/unit-tests.yaml
CSRBot c5678e572a
All checks were successful
Run unit tests / test (pull_request) Successful in 6m13s
continuous-integration/drone/pr Build is passing
Run unit tests / test (push) Successful in 6m2s
continuous-integration/drone/push Build is passing
chore(deps): update docker.io/library/golang docker tag to v1.24.0
2025-02-12 20:31:50 +00: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.24.0
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