-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (26 loc) · 803 Bytes
/
Copy pathbackend-ci.yml
File metadata and controls
29 lines (26 loc) · 803 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
name: backend-ci
on:
push:
branches: [main]
# shared/go is consumed through `replace github.com/prova/shared => ../shared/go`, so a change
# there compiles into this module and must re-run vet, build and tests.
paths: ['backend/**', 'shared/go/**', '.github/workflows/backend-ci.yml']
pull_request:
branches: [main]
paths: ['backend/**', 'shared/go/**', '.github/workflows/backend-ci.yml']
defaults:
run:
working-directory: backend
jobs:
build:
name: Vet, build & test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: backend/go.mod
cache-dependency-path: backend/go.sum
- run: go vet ./...
- run: go build ./...
- run: go test ./...