Skip to content

Commit

Permalink
run mysql as container service in gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanc-flare committed Jul 12, 2024
1 parent 48bc4f7 commit a7ddff1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ jobs:
run: go build

- name: Test
run: |
cd database/docker
docker-compose up --detach
cd ../../indexer
go test .
run: go test -v ./indexer
services:
mysql:
image: mysql
ports: 3306:3306
environment:
MYSQL_ROOT_PASSWORD: "root"

0 comments on commit a7ddff1

Please sign in to comment.