mirror of
https://github.com/sbondCo/Watcharr.git
synced 2026-08-07 07:14:44 +00:00
35 lines
657 B
YAML
35 lines
657 B
YAML
name: Test PR (server)
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- "**"
|
|
tags-ignore:
|
|
- v*
|
|
paths:
|
|
- ".github/workflows/test-pr-server.yml"
|
|
- "server/**"
|
|
|
|
jobs:
|
|
format_check_go:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
|
|
- name: go test all packages
|
|
run: go test ./...
|
|
|
|
- name: gofmt test
|
|
run: |
|
|
outp=$(gofmt -l .)
|
|
if [ -n "$outp" ]; then
|
|
echo "Need to fix formatting!"
|
|
echo "$outp"
|
|
exit 1
|
|
else
|
|
echo "Everything looks formatted"
|
|
exit 0
|
|
fi
|