@@ -4,51 +4,53 @@ name: CI
44
55on :
66 push :
7- branches : [ master ]
7+ branches : [master]
88 pull_request :
9- branches : [ master ]
9+ branches : [master]
1010
1111jobs :
1212 build :
13- runs-on : ubuntu-latest
13+ runs-on : ubuntu-20.04
1414
1515 steps :
16- - uses : actions/checkout@v2
17-
18- - name : Setup Node.js environment
19- 20-
21- - name : Install npm dependencies
22- run : npm ci
23-
24- - name : Unit tests
25- run : npm run test:cov
26-
27- - name : Codacy Coverage Reporter
28- 29- with :
30- project-token : ${{ secrets.CODACY_TOKEN }}
31-
32- - name : Setup PostgreSQL
33- 34- with :
35- postgresql db : vrt_db_dev
36- postgresql user : postgres
37- postgresql password : postgres
38-
39- - name : Wait untill DB started (workaround of https://github.com/Harmon758/postgresql-action/issues/7)
40- uses :
jakejarvis/[email protected] 41- with :
42- time : ' 5s'
43-
44- - name : Apply Manual DB migrations
45- run : npx ts-node ./prisma/manual_migrations.ts
46-
47- - name : Apply DB migrations
48- run : npx prisma migrate up -c --experimental
49-
50- - name : Seed DB data
51- run : npx ts-node ./prisma/seed.ts
52-
53- - name : Run e2e tests
54- run : npm run test:e2e
16+ - uses : actions/checkout@v2
17+
18+ - name : Setup Node.js environment
19+ 20+ with :
21+ node-version : ' 14.16.1'
22+
23+ - name : Install npm dependencies
24+ run : npm ci
25+
26+ - name : Unit tests
27+ run : npm run test:cov
28+
29+ - name : Codacy Coverage Reporter
30+ 31+ with :
32+ project-token : ${{ secrets.CODACY_TOKEN }}
33+
34+ - name : Setup PostgreSQL
35+ 36+ with :
37+ postgresql db : vrt_db_dev
38+ postgresql user : postgres
39+ postgresql password : postgres
40+
41+ - name : Wait untill DB started (workaround of https://github.com/Harmon758/postgresql-action/issues/7)
42+ uses :
jakejarvis/[email protected] 43+ with :
44+ time : ' 5s'
45+
46+ - name : Apply Manual DB migrations
47+ run : npx ts-node ./prisma/manual_migrations.ts
48+
49+ - name : Apply DB migrations
50+ run : npx prisma migrate up -c --experimental
51+
52+ - name : Seed DB data
53+ run : npx ts-node ./prisma/seed.ts
54+
55+ - name : Run e2e tests
56+ run : npm run test:e2e
0 commit comments