Skip to content

Commit 3390aab

Browse files
improve test action
1 parent 7c34dd5 commit 3390aab

2 files changed

Lines changed: 17 additions & 9 deletions

File tree

.github/workflows/main.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,22 @@ name: "PR Checks"
22
on: push
33

44
jobs:
5-
test:
5+
unit:
66
runs-on: ubuntu-latest
7-
name: Action Test
7+
name: Unit Tests
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v4
11+
with:
12+
node-version: 20
13+
cache: 'npm'
14+
- run: npm install
15+
- run: npm test
16+
17+
e2e:
18+
runs-on: ubuntu-latest
19+
name: E2E Test
20+
needs: unit
821
steps:
922
- uses: actions/checkout@v4
1023
- uses: actions/setup-node@v4
@@ -16,12 +29,8 @@ jobs:
1629
key: ${{ secrets.TB_KEY }}
1730
secret: ${{ secrets.TB_SECRET }}
1831
tunnelIdentifier: github-action-tunnel
19-
20-
- name: "Install Dependencies"
21-
run: npm install
22-
23-
- name: "Run Test"
24-
run: npm run test
32+
- run: npm install
33+
- run: npm run test:e2e
2534
env:
2635
TB_KEY: ${{ secrets.TB_KEY }}
2736
TB_SECRET: ${{ secrets.TB_SECRET }}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "setup-env",
33
"version": "1.0.0",
44
"description": "Set up the TestingBot Test Environment",
5-
"main": "index.js",
65
"homepage": "https://github.com/testingbot/testingbot-tunnel-action#readme",
76
"bugs": {
87
"url": "https://github.com/testingbot/testingbot-tunnel-action/issues"

0 commit comments

Comments
 (0)