diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3ea31efd..11dfff35 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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