Skip to content

Commit

Permalink
[simple]add a test environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
vistart committed Aug 15, 2024
1 parent 0be1524 commit f2e048e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- 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
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@v5
with:
Expand All @@ -41,14 +41,14 @@ jobs:

- name: Stop containers
if: always()
run: docker-compose -f tests/environments/go1.20_redis7_mysql8/docker-compose.yml down
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
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@v5
with:
Expand All @@ -64,14 +64,14 @@ jobs:
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
run: docker compose -f tests/environments/go1.21_redis7_mysql8/docker-compose.yml down
go22_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.22_redis7_mysql8/docker-compose.yml up -d --build && docker ps
run: docker compose -f tests/environments/go1.22_redis7_mysql8/docker-compose.yml up -d --build && docker ps
- name: Set up Go
uses: actions/setup-go@v5
with:
Expand All @@ -87,14 +87,14 @@ jobs:
run: go test -race -v ./... -bench . -run ^$ -count 10 -benchmem
- name: Stop containers
if: always()
run: docker-compose -f tests/environments/go1.22_redis7_mysql8/docker-compose.yml down
run: docker compose -f tests/environments/go1.22_redis7_mysql8/docker-compose.yml down
go23_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.23_redis7_mysql8/docker-compose.yml up -d --build && docker ps
run: docker compose -f tests/environments/go1.23_redis7_mysql8/docker-compose.yml up -d --build && docker ps
- name: Set up Go
uses: actions/setup-go@v5
with:
Expand All @@ -110,4 +110,4 @@ jobs:
run: go test -race -v ./... -bench . -run ^$ -count 10 -benchmem
- name: Stop containers
if: always()
run: docker-compose -f tests/environments/go1.23_redis7_mysql8/docker-compose.yml down
run: docker compose -f tests/environments/go1.23_redis7_mysql8/docker-compose.yml down

0 comments on commit f2e048e

Please sign in to comment.