FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
simstudioai-sim/.github/workflows/migrations.yml at main · riverwolf67/simstudioai-sim · GitHub
riverwolf67
/
simstudioai-sim
Public
forked from
simstudioai/sim
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
simstudioai-sim
/
.github
/
workflows
/
migrations.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
42 lines (34 loc) · 1.01 KB
Breadcrumbs
simstudioai-sim
/
.github
/
workflows
/
migrations.yml
Copy path
File metadata and controls
42 lines (34 loc) · 1.01 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name
:
Database Migrations
on
:
workflow_call
:
workflow_dispatch
:
permissions
:
contents
:
read
jobs
:
migrate
:
name
:
Apply Database Migrations
runs-on
:
blacksmith-4vcpu-ubuntu-2404
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v4
-
name
:
Setup Bun
uses
:
oven-sh/setup-bun@v2
with
:
bun-version
:
1.3.11
-
name
:
Cache Bun dependencies
uses
:
actions/cache@v4
with
:
path
:
|
~/.bun/install/cache
node_modules
**/node_modules
key
:
${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
restore-keys
:
|
${{ runner.os }}-bun-
-
name
:
Install dependencies
run
:
bun install --frozen-lockfile
-
name
:
Apply migrations
working-directory
:
./packages/db
env
:
DATABASE_URL
:
${{ github.ref == 'refs/heads/main' && secrets.DATABASE_URL || secrets.STAGING_DATABASE_URL }}
run
:
bunx drizzle-kit migrate --config=./drizzle.config.ts
Back
|
FazBrowse Home
|
New Git URL