-
Notifications
You must be signed in to change notification settings - Fork 415
39 lines (38 loc) · 1.02 KB
/
backend-lint-test.yml
File metadata and controls
39 lines (38 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
name: "Backend verify"
on:
workflow_call:
permissions:
contents: read
jobs:
lint:
name: Lint Backend
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version-file: 'backend/go.mod'
cache-dependency-path: 'backend/go.sum'
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: v2.10
working-directory: backend
args: --timeout=10m --config=.golangci.yaml
test:
name: Test Backend
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version-file: 'backend/go.mod'
cache-dependency-path: 'backend/go.sum'
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Unit & Integration Tests
run: task backend:test-integration