Skip to content

Commit

Permalink
chore: add test.e2e-cli to the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-stepanenko authored and shairez committed Sep 17, 2024
1 parent bc5c9d1 commit b4d9579
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4d9579

Please sign in to comment.