File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1616 - uses : oven-sh/setup-bun@v1
1717 with :
1818 bun-version : latest
19+ - uses : shogo82148/actions-setup-mysql@v1
20+ with :
21+ mysql-version : " 8.1"
1922 - run : bun install
2023 working-directory : ${{ matrix.dir }}
2124 - run : echo "DATABASE_URL=$(sqlc createdb --queryset ${{ matrix.qs }})" >> $GITHUB_ENV
@@ -70,16 +73,21 @@ jobs:
7073 with :
7174 sqlc-version : ' 1.24.0'
7275 - uses : actions/setup-node@v4
76+ - uses : shogo82148/actions-setup-mysql@v1
77+ with :
78+ mysql-version : " 8.1"
7379 - run : npm install
7480 working-directory : ${{ matrix.dir }}
7581 - run : npx tsc
7682 working-directory : ${{ matrix.dir }}
77- - run : echo "DATABASE_URL=$(sqlc createdb --queryset ${{ matrix.qs }})" >> $GITHUB_ENV
78- working-directory : examples/authors
83+ - run : mysql "$DATABASE_URL" < schema.sql
84+ working-directory : examples/authors/mysql
7985 env :
80- SQLC_AUTH_TOKEN : ${{ secrets.SQLC_AUTH_TOKEN }}
86+ DATABASE_URL : root:@localhost:3306/mysql
8187 - run : node ./src/main.js
8288 working-directory : ${{ matrix.dir }}
89+ env :
90+ DATABASE_URL : root:@localhost:3306/mysql
8391
8492 node-postgresql :
8593 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments