forked from wso2/openfgc
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 935 Bytes
/
Copy pathportal-backend-ci.yml
File metadata and controls
44 lines (36 loc) · 935 Bytes
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
40
41
42
43
44
name: Portal Backend CI
on:
pull_request:
paths:
- 'portal/backend/**'
- '.github/workflows/portal-backend-ci.yml'
push:
branches: [ main ]
paths:
- 'portal/backend/**'
- '.github/workflows/portal-backend-ci.yml'
jobs:
portal-backend-ci:
runs-on: ubuntu-latest
defaults:
run:
working-directory: portal/backend
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: portal/backend/go.mod
- name: Download deps
run: go mod download
- name: Format check
run: |
test -z "$(gofmt -l . | tee /dev/stderr)"
- name: Run tests
run: go test ./... -v
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
working-directory: portal/backend
version: v2.12.2