Fix bugs occurs in racing condition #123
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: flamingo-armond backend CI | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'backend/**' | |
jobs: | |
backend: | |
name: backend CI | |
runs-on: ubuntu-22.04 | |
environment: Test | |
steps: | |
- name: Set up Go 1.22.5 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.5' | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Goose | |
run: go install github.com/pressly/goose/v3/cmd/goose@latest | |
# Alternatively, install using go install | |
- name: Set up gotestfmt | |
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest | |
- name: Fetch dependant Go modules | |
run: |- | |
go get -v -t -d ./... | |
working-directory: ./backend | |
- name: Test code | |
run: |- | |
go test -json -v ./... | |
working-directory: ./backend |