prometheus-fail2ban-exporter/.gitea/workflows/unit-tests.yaml
CSRBot 33ce270f42
Some checks failed
Run unit tests / test (pull_request) Failing after 11m34s
chore(deps): update docker.io/library/golang docker tag to v1.23.6
2025-02-09 10:52:35 +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