From ec6b6821b9ac32e99adbb046ec3b0ca2da65c81f Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Thu, 4 Jul 2024 11:30:02 +0800 Subject: [PATCH] Add unit test workflow w/ extra runs for tracker test --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7620cf2 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: Test + +on: + pull_request: + branches: '*' + push: + branches: + - main + +jobs: + test: + name: Run unit tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v3 + with: + go-version-file: go.mod + check-latest: true + - name: Run unit tests + run: | + go test -v -p 1 ./... + go test -v ./tracker -count 20