From b776cd4ebdc4514ab7bccace082d1efaf998f8e9 Mon Sep 17 00:00:00 2001 From: Hardy Nguyen Date: Mon, 20 Jul 2026 09:44:13 +0000 Subject: [PATCH] ci: add GitHub Actions workflow using npm ci and npm test --- .github/workflows/e2e.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/e2e.yml diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 0000000..88f4169 --- /dev/null +++ b/.github/workflows/e2e.yml @@ -0,0 +1,28 @@ +name: E2E Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + e2e: + name: Run E2E Tests + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + node-version: [ 20.x, 22.x, 24.x ] + os: [ ubuntu-latest, macos-latest, windows-latest ] + + steps: + - uses: actions/checkout@v5 + - name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }} + uses: actions/setup-node@v5 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci --ignore-scripts + - run: npm test