docs: 📝 update readme #112
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |