Skip to content

Commit cdc5159

Browse files
committed
test/github-actions-flow
1 parent b9e84b7 commit cdc5159

File tree

2 files changed

+47
-7
lines changed

2 files changed

+47
-7
lines changed

.github/workflows/run_test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
env:
16+
DB_USERNAME: postgres
17+
DB_PASSWORD: postgres
18+
DB_NAME: sisinfoDB
19+
DB_HOST: localhost
20+
DB_PORT: 5432
21+
NEXT_PUBLIC_API_URL: http://localhost:8000/api
22+
FRONT_URL: http://localhost:3000
23+
24+
steps:
25+
- name: Check out code
26+
uses: actions/checkout@v2
27+
28+
- name: Set up Node.js
29+
uses: actions/setup-node@v2
30+
with:
31+
node-version: '22'
32+
33+
- name: Install dependencies
34+
run: npm install
35+
36+
- name: Run tests
37+
run: npm run test
38+
39+
- name: Run e2e tests
40+
run: npm run test:e2e

config/.env.template

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
DB_USERNAME=your_username
2-
DB_PASSWORD=your_password
3-
DB_NAME=your_db_name
4-
DB_HOST=your_host
5-
DB_PORT=your_port
6-
NEXT_PUBLIC_API_URL=http://your_ip:8000/api
7-
FRONT_URL=http://your_ip:3000
1+
DB_USERNAME=postgres
2+
DB_PASSWORD=postgres
3+
DB_NAME=sisinfoDB
4+
DB_HOST=localhost
5+
DB_PORT=5432
6+
NEXT_PUBLIC_API_URL=http://localhost:8000/api
7+
FRONT_URL=http://localhost:3000

0 commit comments

Comments
 (0)