Merge pull request #568 from nginx-proxy/dependabot/docker/golang-1.21.5 #543
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths-ignore: | |
- "LICENSE" | |
- "**.md" | |
- "examples/*" | |
- "templates/*" | |
jobs: | |
unit: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21" | |
- name: Install dependencies | |
run: make get-deps | |
- name: Build docker-gen | |
run: make docker-gen | |
- name: Check code formatting | |
run: make check-gofmt | |
- name: Run tests | |
run: go test -race -v ./internal/... |