Skip to content

Add GolangCI linter and Go unit tests. #1

Add GolangCI linter and Go unit tests.

Add GolangCI linter and Go unit tests. #1

Workflow file for this run

name: Go unit tests
on: [push, workflow_dispatch]
permissions:
checks: write
contents: read
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run GolangCI-Lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
- name: Test application
run: go test -short -v ./...