From 00ec7c45ecc3ab00ddb49b07a4b83d37d11bc2f8 Mon Sep 17 00:00:00 2001 From: chrnorm <17420369+chrnorm@users.noreply.github.com> Date: Wed, 3 Apr 2024 16:57:46 +0100 Subject: [PATCH] add test pipeline --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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 00000000..c6ae18bb --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: Test + +on: + push: + +jobs: + test: + name: Test + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: "1.22.0" + cache: true + + - name: Lint + run: go vet ./... + + - name: Test + run: go test ./... + + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.55.2 + args: --timeout=10m ./...