-
Notifications
You must be signed in to change notification settings - Fork 87
41 lines (33 loc) · 1.13 KB
/
ci.yml
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
name: CI
on:
push:
branches: ["main", "develop"]
pull_request:
branches: ["main", "develop"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# https://github.com/actions/setup-go/issues/326
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x
# https://pkg.go.dev/cmd/go#hdr-Compile_packages_and_dependencies
# https://pkg.go.dev/cmd/go#hdr-Package_lists_and_patterns
- name: Build
run: go build -v ./...
# https://go.dev/doc/articles/race_detector
# https://dev.to/s0xzwasd/run-tests-with-race-flag-in-goland-512j
- name: Building-Blocks Tests
run: go test -v ./... -race
- name: Catalogs Write Service Tests
working-directory: ./services/catalogs_write/catalogs_write
run: go test -v ./... -race
- name: Catalogs Read Service Tests
working-directory: ./services/catalogs_write/catalogs_read
run: go test -v ./... -race
- name: Order Service Tests
working-directory: ./services/orders
run: go test -v ./... -race