Skip to content

Commit

Permalink
Add Github Action to run migrations on commit
Browse files Browse the repository at this point in the history
  • Loading branch information
arnavb committed Jul 7, 2024
1 parent ec08290 commit d6102f4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/migrations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run Migrations

on:
push:
branches:
- master

jobs:
run_migrations:
runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_USER: jimbrobotdb
POSTGRES_PASSWORD: jimbrobotpassword
ports:
- 5432:5432

steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.x"
- run: dotnet run --project Migrations

0 comments on commit d6102f4

Please sign in to comment.