Skip to content

Commit 1dcd346

Browse files
committed
ci: CI to tests
1 parent ab38082 commit 1dcd346

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Run E2E Tests
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
run-e2e-tests:
7+
name: Run E2E Tests
8+
runs-on: ubuntu-latest
9+
10+
services:
11+
postgres:
12+
image: bitnami/postgresql
13+
ports:
14+
- 5432:5432
15+
env:
16+
POSTGRES_USER: postgresql
17+
POSTGRES_PASSWORD: docker
18+
POSTGRES_DB: vuttr_postgres
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: 20
26+
cache: 'yarn'
27+
28+
- run: yarn install --frozen-lockfile
29+
30+
- run: yarn test:e2e
31+
env:
32+
JWT_SECRET: secret
33+
DATABASE_URL: "postgresql://postgresql:docker@localhost:5432/vuttr_postgres?schema=public"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Run Unit Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
run-unit-tests:
7+
name: Run Unit Tests
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 20
16+
cache: 'yarn'
17+
18+
- run: yarn install --frozen-lockfile
19+
20+
- run: yarn test

0 commit comments

Comments
 (0)