Skip to content

Commit c3d8820

Browse files
committed
test: Run test app in GitHub Workflows
1 parent 337d8fe commit c3d8820

File tree

3 files changed

+50
-23
lines changed

3 files changed

+50
-23
lines changed

.github/workflows/test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@ jobs:
1717
node-version: ${{ matrix.version }}
1818
- run: npm ci
1919
- run: npm test
20+
- run: npm build
21+
- run: cd test-app
22+
- run: npm install
23+
- run: node index.js
2024
env:
2125
IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }}

test-app/package-lock.json

Lines changed: 45 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "",
1010
"license": "ISC",
1111
"dependencies": {
12-
"node-ipinfo": "^4.0.0",
12+
"node-ipinfo": "file: ./../../",
1313
"typescript": "^4.4.2"
1414
}
1515
}

0 commit comments

Comments
 (0)