Skip to content

Commit 85db6cf

Browse files
refactor: improve github main action
1 parent 752871c commit 85db6cf

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on: [push, pull_request]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8+
container: node:16-alpine
89

910
services:
1011
database:
@@ -23,15 +24,15 @@ jobs:
2324
2425
strategy:
2526
matrix:
26-
node-version: [14.x, 16.x]
27+
node-version: [16.x]
2728

2829
steps:
2930
- uses: actions/checkout@v2
3031
with:
3132
fetch-depth: 0
3233

33-
- name: Check commit message
34-
uses: wagoid/[email protected]
34+
# - name: Check commit message
35+
# uses: wagoid/[email protected]
3536

3637
- name: Use Node.js ${{matrix.node-version}}
3738
uses: actions/setup-node@v2
@@ -50,6 +51,11 @@ jobs:
5051
- name: Install dependencies
5152
run: yarn install --prefer-offline --frozen-lockfile --cache-folder ~/.cache/yarn/v6
5253

54+
- name: Run Migrations
55+
run: yarn typeorm migration:run
56+
env:
57+
DATABASE_URL: 'postgres://postgres:buzzl@database:5432/buzzl'
58+
5359
- name: Run linting
5460
run: yarn lint
5561

0 commit comments

Comments
 (0)