From d29d37500832182285748f1a1bc620ce6ad222b0 Mon Sep 17 00:00:00 2001 From: Vaughan Whitteron Date: Tue, 27 Feb 2024 20:41:09 +0900 Subject: [PATCH] ci: add test workflow --- .github/workflows/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dba5e89..7dad6f5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,3 +21,22 @@ jobs: - name: Audit code run: | make audit + + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" + check-latest: true + - name: Run tests + run: make test + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: vwhitteron/gt-telemetry \ No newline at end of file