- [fix] data race of visiting channels if workflow is being closed. #106
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
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Go | |
on: | |
push: | |
branches: [ "r1.0" ] | |
pull_request: | |
branches: [ "r1.0" ] | |
jobs: | |
go20_redis7_mysql8: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build and start containers | |
run: docker-compose -f tests/environments/go1.20_redis7_mysql8/docker-compose.yml up -d --build && docker ps | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20" | |
check-latest: true | |
- name: Build | |
run: go mod tidy && go build -v ./... | |
- name: Test | |
run: go test -race -v ./... | |
- name: Benchmark | |
run: go test -race -v ./... -bench . -run ^$ -count 10 -benchmem | |
- name: Stop containers | |
if: always() | |
run: docker-compose -f tests/environments/go1.20_redis7_mysql8/docker-compose.yml down | |
go21_redis7_mysql8: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build and start containers | |
run: docker-compose -f tests/environments/go1.21_redis7_mysql8/docker-compose.yml up -d --build && docker ps | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21" | |
check-latest: true | |
- name: Build | |
run: go mod tidy && go build -v ./... | |
- name: Test | |
run: go test -race -v ./... | |
- name: Benchmark | |
run: go test -race -v ./... -bench . -run ^$ -count 10 -benchmem | |
- name: Stop containers | |
if: always() | |
run: docker-compose -f tests/environments/go1.21_redis7_mysql8/docker-compose.yml down |