immich-exporter/.github/workflows/test.yml
martin 7e3d56c3e0
ci: linter (#14)
* ci: add linter

* chore: update dependencies

* remove package.json

* feat: use enums

* ci: rename workflow
2023-12-23 21:58:57 +01:00

26 lines
492 B
YAML

name: Test
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: go test -v ./src/tests
- name: Run formatter
run: test -z $(gofmt -l ./src)
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2