From b83aa30db803fd53f243fc67cc465a06b60a871d Mon Sep 17 00:00:00 2001 From: Jannik Hollenbach Date: Tue, 7 Jan 2025 20:21:18 +0100 Subject: [PATCH] Add golang testing pipeline --- .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..843195c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +on: [push, pull_request] +name: "Tests" +permissions: + contents: read +env: + GO_STATIC_CHECK_VERSION: "2024.1.1" +jobs: + scan-deduplicator: + name: "Scan Deduplicator" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" + cache-dependency-path: "go.sum" + - name: "Lint" + run: go vet ./... + - uses: dominikh/staticcheck-action@v1.3.1 + with: + version: "${{ env.GO_STATIC_CHECK_VERSION }}" + - name: "Test" + run: go test -cover ./...