Skip to content

Commit 0b5d93a

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

File tree

3 files changed

+36
-8
lines changed

3 files changed

+36
-8
lines changed

.github/workflows/run_test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
steps:
16+
- name: Check out code
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '22'
23+
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Run unit tests
28+
run: npm run test

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

test/support/custom-world.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class CustomWorld extends World {
1111
}
1212

1313
async init() {
14-
this.browser = await chromium.launch({ headless: false });
14+
this.browser = await chromium.launch({ headless: true });
1515
this.context = await this.browser.newContext();
1616
this.page = await this.context.newPage();
1717
}

0 commit comments

Comments
 (0)