Skip to content

Commit

Permalink
made the action sleeps enough that the db gets its shit together
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Oct 16, 2023
1 parent cc6b084 commit 96755cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
ports:
- 3306:3306
env:
MARIADB_ROOT_PASSWORD: super_secret_pa$$w0rd
MARIADB_ROOT_PASSWORD: super_secret_passw0rd
MARIADB_DATABASE: campus_db
steps:
- uses: actions/checkout@v4
Expand All @@ -34,12 +34,14 @@ jobs:
go-version: '1.21'
cache-dependency-path: |
server/go.sum
- name: wait for db
run: sleep 30
- name: run migration
run: go run main.go
working-directory: ./server
env:
EXIT_AFTER_MIGRATION: "true"
DB_DSN: root:super_secret_pa$$w0rd@tcp(db:3306)/campus_db?charset=utf8mb4&parseTime=True&loc=Local
DB_DSN: root:super_secret_passw0rd@tcp(db:3306)/campus_db?charset=utf8mb4&parseTime=True&loc=Local
ENVIRONMENT: dev
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 96755cb

Please sign in to comment.