27 lines
519 B
YAML
27 lines
519 B
YAML
name: Tests
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
jobs:
|
|
test:
|
|
name: Run tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run unit tests
|
|
run: make test
|
|
|
|
- name: Run formatter
|
|
run: cd src && test -z $(gofmt -l .)
|
|
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v3
|
|
with:
|
|
version: v1.55.2
|
|
working-directory: src
|