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

30 lines
615 B
YAML
Raw Permalink Normal View History

2025-02-02 17:44:29 +00:00
name: Run unit tests
on:
pull_request:
branches:
- '*'
types: [ "opened", "reopened", "synchronize" ]
push:
branches:
- '*'
workflow_dispatch: {}
jobs:
test:
2025-02-02 17:44:29 +00:00
container:
image: docker.io/library/golang:1.23.5
runs-on:
2025-02-02 18:01:04 +00:00
- ubuntu-latest
2025-02-02 17:44:29 +00:00
steps:
- name: Install tooling
run: |
apt-get update --yes
apt-get upgrade --yes
apt-get install --yes git npm
2025-02-02 18:08:49 +00:00
- uses: actions/checkout@v4
2025-02-02 17:44:29 +00:00
- env:
GOPROXY: ${{ vars.GOPROXY }}
GONOSUMDB: ${{ vars.GONOSUMDB }}
name: Execute containerized unit test
2025-02-02 17:46:26 +00:00
run: make test