Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
39 lines
650 B
YAML
39 lines
650 B
YAML
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@v4
|
|
with:
|
|
go-version: "1.20"
|
|
|
|
- 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/...
|