Skip to content

Workflow file for this run

name: Lint and Test Backend
on:
push:
branches: [main]
paths:
- "backend/**"
- ".github/workflows/backend.yml"
pull_request:
branches: [main]
paths:
- "backend/**"
- ".github/workflows/backend.yml"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22.0
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
working-directory: backend
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22.0
- name: Test
run: go test -v .
working-directory: backend