2023-11-26 22:19:43 +00:00
|
|
|
name: unit-tests
|
2023-11-26 05:36:02 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2023-11-26 23:00:37 +00:00
|
|
|
- cmd/**
|
|
|
|
- config/**
|
2023-12-03 03:52:42 +00:00
|
|
|
- cnet/**
|
2023-11-26 23:00:37 +00:00
|
|
|
- internal/**
|
|
|
|
- login/**
|
|
|
|
- shard/**
|
2023-12-03 03:52:42 +00:00
|
|
|
- util/**
|
2023-11-26 05:36:02 +00:00
|
|
|
- go.mod
|
|
|
|
- go.sum
|
|
|
|
- .github/workflows/tests.yaml
|
|
|
|
|
|
|
|
jobs:
|
2023-11-26 22:19:43 +00:00
|
|
|
run:
|
2023-11-26 05:36:02 +00:00
|
|
|
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
|
2023-12-01 20:10:45 +00:00
|
|
|
run: go test -timeout 10s -v ./...
|