prometheus-fail2ban-exporter/.gitea/workflows/unit-tests.yaml
CSRBot 1e45723a90
Some checks reported errors
continuous-integration/drone/pr Build is running
Run unit tests / test (pull_request) Failing after 8s
continuous-integration/drone/push Build encountered an error
chore(deps): update docker.io/library/golang docker tag to v1.23.6
2025-02-04 22:13:16 +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.23.6
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