Update gh actions to run e2e tests

This commit is contained in:
moloch--
2026-03-01 12:32:00 -08:00
parent 6a409c8ea4
commit 8387217f95
4 changed files with 60 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
node_modules
lib
e2e/dist
e2e/.cache
sliver/sliver-client
sliver/sliver-client_*
sliver/sliver-server
sliver/sliver-server_*
+24
View File
@@ -11,6 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 24.x
@@ -18,3 +20,25 @@ jobs:
- run: npm ci
- run: npm run build
e2e-tests:
name: e2e (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 24.x
cache: npm
- uses: actions/setup-go@v5
with:
go-version: 1.25.x
- run: npm ci
- run: npm run test:e2e
+27
View File
@@ -0,0 +1,27 @@
FROM node:25-bookworm
ARG GO_VERSION=1.25.7
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git \
make \
unzip \
xz-utils \
&& rm -rf /var/lib/apt/lists/*
RUN curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" \
| tar -C /usr/local -xzf -
ENV PATH="/usr/local/go/bin:${PATH}"
WORKDIR /workspace
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
CMD ["npm", "run", "test:e2e"]
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sliver-script",
"version": "1.2.5",
"version": "2.0.0",
"description": "TypeScript/JavaScript Sliver client library",
"main": "lib/index.js",
"types": "lib/index.d.ts",