From 05d20a5603a1960af7aff40e9366e6a6e13a2d72 Mon Sep 17 00:00:00 2001 From: Nicolas Ayral Seydoux Date: Thu, 4 Jul 2024 10:15:31 +0200 Subject: [PATCH] Add CI workflow --- .github/workflows/e2e-node.yml | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/e2e-node.yml diff --git a/.github/workflows/e2e-node.yml b/.github/workflows/e2e-node.yml new file mode 100644 index 0000000..bb7352b --- /dev/null +++ b/.github/workflows/e2e-node.yml @@ -0,0 +1,42 @@ +name: End-to-end Tests (Node) + +on: + push: + # Allow manual triggering, e.g. to run end-to-end tests against Dependabot PRs: + workflow_dispatch: + +env: + CI: true +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +jobs: + e2e-node: + runs-on: ${{ matrix.os }} + environment: + name: ${{ matrix.environment-name }} + continue-on-error: ${{ matrix.experimental }} + strategy: + matrix: + os: [ubuntu-latest] + node-version: ["20.x", "18.x"] + # PodSpaces doesn't support error descriptions yet. + environment-name: ["ESS Dev-2-3"] + experimental: [false] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + cache-dependency-path: "**/package-lock.json" + + - name: Install dependencies + run: npm ci + + - run: npm run test:e2e:node + env: + E2E_TEST_IDP: ${{ secrets.E2E_TEST_IDP }} + E2E_TEST_ENVIRONMENT: ${{ matrix.environment-name }} + E2E_TEST_OWNER_CLIENT_ID: ${{ secrets.E2E_TEST_OWNER_CLIENT_ID }} + E2E_TEST_OWNER_CLIENT_SECRET: ${{ secrets.E2E_TEST_OWNER_CLIENT_SECRET }}