From b4d9579ed927edec7e3453757cc835cee516d09a Mon Sep 17 00:00:00 2001 From: Dmitriy Stepanenko Date: Tue, 10 Sep 2024 21:32:08 +0300 Subject: [PATCH] chore: add test.e2e-cli to the CI --- .changeset/config.json | 3 ++- .github/workflows/ci.yml | 50 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/.changeset/config.json b/.changeset/config.json index fa7def1a078..63c474fef6e 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -12,7 +12,8 @@ "@builder.io/qwik-labs", "insights", "@builder.io/qwik-react", - "@builder.io/qwik-worker" + "@builder.io/qwik-worker", + "qwik-cli-e2e" ], "___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { "onlyUpdatePeerDependentsWhenOutOfRange": true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84f21adb603..47c495ac896 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -716,6 +716,56 @@ jobs: if: matrix.settings.host != 'windows-latest' run: pnpm cli.validate + ############ E2E CLI TEST ############ + test-cli-e2e: + name: E2E CLI Tests + if: always() && needs.changes.outputs.build-e2e == 'true' + + needs: + - build-other-packages + - changes + - test-unit + + strategy: + matrix: + settings: + - host: ubuntu-latest + - host: macos-latest + - host: windows-latest + + runs-on: ${{ matrix.settings.host }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20.x + cache: 'pnpm' + registry-url: https://registry.npmjs.org/ + - run: corepack enable + + - name: Download Build Artifacts + uses: actions/download-artifact@v4 + + - name: Move Distribution Artifacts + run: | + mv artifact-qwik/* packages/qwik/ + mkdir -p packages/qwik-city/lib/ + mv artifact-qwikcity/* packages/qwik-city/lib/ + mkdir -p packages/create-qwik/dist/ + mv artifact-create-qwik/* packages/create-qwik/dist/ + mkdir -p packages/eslint-plugin-qwik/dist/ + mv artifact-eslint-plugin-qwik/* packages/eslint-plugin-qwik/dist/ + + - run: pnpm install --frozen-lockfile + + - name: CLI E2E Tests + run: pnpm run test.e2e-cli + ########### LINT PACKAGES ############ lint-package: name: Lint Package