gopenfusion/.github/workflows/tests.yaml
CPunch 0ed19ad6c5 tests workflow: add timeout
some of the tests can fail in really bad, slow ways. make sure we don't
spin our wheels waiting for a failed test to never fail.
2023-12-01 14:10:45 -06:00

27 lines
462 B
YAML

name: unit-tests
on:
push:
paths:
- cmd/**
- config/**
- internal/**
- login/**
- shard/**
- go.mod
- go.sum
- .github/workflows/tests.yaml
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Test with the Go CLI
run: go test -timeout 10s -v ./...