Merge pull request #608 from the-clothing-loop/l10n_main #121
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint Server | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- server/** | |
- "!server/internal/views/emails/**" | |
pull_request: | |
paths: | |
- server/** | |
- "!server/internal/views/emails/**" | |
jobs: | |
lint-golang: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.20" | |
check-latest: true | |
cache: true | |
cache-dependency-path: server/go.sum | |
- name: Install Dependencies Backend | |
run: go install honnef.co/go/tools/cmd/staticcheck@latest | |
- name: Run Go Format | |
run: make lint-test | |
working-directory: ./server | |
- name: Run Go Test | |
run: make test-ci | |
working-directory: ./server |