Skip to content

Add target group

Add target group #14

Workflow file for this run

on:
- push
- pull_request
name: unit tests
jobs:
unit_tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18.x
- uses: actions/cache@v3
with:
path: |
~/go/pkg/mod # Module download cache
~/.cache/go-build # Build cache (Linux)
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: go test ./... -v
- name: Check Format
run: '[ "$(gofmt -l ./ | wc -l)" -eq 0 ]'