File tree Expand file tree Collapse file tree 2 files changed +47
-7
lines changed
Expand file tree Collapse file tree 2 files changed +47
-7
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments