Skip to content

Commit

Permalink
Add github workflow to sqlc diff
Browse files Browse the repository at this point in the history
  • Loading branch information
saolof committed May 27, 2024
1 parent 15e8e84 commit c5fd9e1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/sqlc-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: sqlc
on: [push]
permissions:
contents: read
pull-requests: read
jobs:
diff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: sqlc-dev/setup-sqlc@v3
with:
sqlc-version: '1.26.0'
- run: sqlc diff
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func run(ctx context.Context, w io.Writer, logger *log.Logger, webport int, chec
for _, job := range jobs {
if job.JobName == run_now {
job.Run()
fmt.Println("Ran: ", job.JobName)
fmt.Println("Ran:", job.JobName)
return nil
}
}
Expand Down

0 comments on commit c5fd9e1

Please sign in to comment.