Skip to content

Commit c8d6cb5

Browse files
authored
Merge pull request #5 from Visual-Regression-Tracker/github-actions
Github actions
2 parents ddddcd7 + 6914be0 commit c8d6cb5

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Setup Node.js environment
19+
uses: actions/[email protected]
20+
21+
- name: Install npm dependencies
22+
run: npm ci
23+
24+
- name: Unit tests
25+
run: npm run test
26+
27+
- name: Setup PostgreSQL
28+
uses: Harmon758/[email protected]
29+
with:
30+
postgresql db: vrt_db_dev
31+
postgresql user: postgres
32+
postgresql password: postgres
33+
34+
- name: Wait untill DB started (workaround of https://github.com/Harmon758/postgresql-action/issues/7)
35+
uses: jakejarvis/[email protected]
36+
with:
37+
time: '5s'
38+
39+
- name: Apply DB migrations
40+
run: npx prisma migrate up -c --experimental
41+
42+
- name: Run e2e tests
43+
run: npm run test:e2e

0 commit comments

Comments
 (0)