This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/.github/workflows/test-unit.yml
Gerhard Lazu 1b17d3b9e2
Do not run lint & tests on unrelated file changes
These paths shouldn't trigger lint or test runs.

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2022-02-04 12:00:54 +00:00

50 lines
913 B
YAML

name: "Test Unit"
on:
push:
branches: [main]
ignore-paths:
- 'docs/**'
- 'infra/**'
- 'website/**'
- '.gitignore'
- '.golangci.yml'
- '.goreleaser.yml'
- 'Dockerfile'
- 'README.md'
- 'install.ps1'
- 'semver'
- 'tracing.compose.yaml'
pull_request:
branches: [main]
ignore-paths:
- 'docs/**'
- 'infra/**'
- 'website/**'
- '.gitignore'
- '.golangci.yml'
- '.goreleaser.yml'
- 'Dockerfile'
- 'README.md'
- 'install.ps1'
- 'semver'
- 'tracing.compose.yaml'
jobs:
unit:
name: Unit
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: "Check out"
uses: actions/checkout@v2
- name: "Setup Go"
uses: actions/setup-go@v1
with:
go-version: 1.16
- name: Test
run: |
make test