Skip to content

Commit 9875b9f

Browse files
committed
Adding CI/CD workflow
1 parent 478eed8 commit 9875b9f

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

‎.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [14.x, 16.x]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
25+
- run: npm ci
26+
- run: npm run build --if-present
27+
28+
- name: Setup Chrome
29+
uses: browser-actions/setup-chrome@latest
30+
31+
- name: Run Selenium Tests
32+
run: npm test

‎src/app.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export class App {
1818
}
1919

2020
// ---URL---
21-
2221
async verifyUrl(expectedUrl: string) {
2322
try {
2423
// Wait for the page url

‎test/loginTest.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ describe('Validate Successful Login', async function () {
2525

2626
it('Step 1: Open Browser', async function () {
2727
await driver.sleep(1000);
28-
2928
await ObjApp.verifyTitle();
3029
});
3130

0 commit comments

Comments
 (0)