Skip to content

Commit 155f997

Browse files
committed
create custom workflow for e2e tests since a secret is required
1 parent ab35c98 commit 155f997

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,29 @@ permissions:
1313

1414
jobs:
1515
e2e-tests:
16-
uses: SocketDev/socket-registry/.github/workflows/test.yml@main
17-
secrets: inherit
18-
with:
19-
test-script: 'pnpm run e2e-tests'
20-
timeout-minutes: 20
16+
runs-on: ${{ matrix.os }}
17+
timeout-minutes: 20
18+
strategy:
19+
fail-fast: true
20+
matrix:
21+
node-version: [20, 22, 24]
22+
os: [ubuntu-latest, windows-latest]
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- uses: pnpm/action-setup@v4
27+
with:
28+
version: 10.16.0
29+
30+
- uses: actions/setup-node@v4
31+
with:
32+
node-version: ${{ matrix.node-version }}
33+
cache: pnpm
34+
35+
- name: Install dependencies
36+
run: pnpm install
37+
38+
- name: Run e2e tests
39+
env:
40+
SOCKET_CLI_API_TOKEN: ${{ secrets.SOCKET_CLI_API_TOKEN }}
41+
run: pnpm run e2e-tests

0 commit comments

Comments
 (0)