Skip to content

Commit

Permalink
Add golang testing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
J12934 committed Jan 7, 2025
1 parent 27df4ad commit b83aa30
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
version: "${{ env.GO_STATIC_CHECK_VERSION }}"
- name: "Test"
run: go test -cover ./...

0 comments on commit b83aa30

Please sign in to comment.