ente/.github/workflows/server-lint.yml

32 lines
815 B
YAML
Raw Normal View History

2024-03-05 11:03:20 +00:00
name: "Lint (server)"
on:
# Run on every push to a branch other than main that changes server/
2024-03-05 11:03:20 +00:00
push:
branches-ignore: [main, "deploy/**"]
2024-03-05 11:03:20 +00:00
paths:
- "server/**"
- ".github/workflows/server-lint.yml"
jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: server
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
2024-03-05 11:15:42 +00:00
go-version-file: "server/go.mod"
2024-03-05 11:03:20 +00:00
cache: true
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install libsodium-dev
- name: Lint
run: "./scripts/lint.sh"