From aa06fd9f9a290633620a5d937cdaf1b89bf2a1b0 Mon Sep 17 00:00:00 2001 From: Ben Holmes Date: Mon, 18 Jul 2022 16:00:00 -0400 Subject: [PATCH] [Smoke] Add docs and astro.build to smoke test (#3941) * feat: add docs and astrobuild to checkout * fix: checkout external repos after main * wip: build each external repo separately? * Revert "wip: build each external repo separately?" This reverts commit 042a3b2a8b33cfcff1622c2002bdfa43a5532ea8. * fix: move checkout to smoke/ * chore: add react to peer dep ignores for CI --- .github/workflows/ci.yml | 24 +++++++++++++----------- package.json | 7 +++++-- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6d59eb0f..3b125789d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -183,16 +183,6 @@ jobs: os: [ubuntu-latest] node_version: [14] steps: - - name: Checkout docs - uses: actions/checkout@v3 - with: - repository: withastro/docs - - - name: Checkout astro.build - uses: actions/checkout@v3 - with: - repository: withastro/astro.build - - name: Checkout uses: actions/checkout@v3 @@ -205,8 +195,20 @@ jobs: node-version: ${{ matrix.node_version }} cache: 'pnpm' + - name: Checkout docs + uses: actions/checkout@v3 + with: + repository: withastro/docs + path: smoke/docs + + - name: Checkout astro.build + uses: actions/checkout@v3 + with: + repository: withastro/astro.build + path: smoke/astro-build + - name: Install dependencies - run: pnpm install + run: pnpm install --no-frozen-lockfile - name: Build Packages run: pnpm run build diff --git a/package.json b/package.json index 6686812a3..0595ac436 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "test": "turbo run test --output-logs=new-only --concurrency=1", "test:match": "cd packages/astro && pnpm run test:match", "test:templates": "turbo run test --filter=create-astro --concurrency=1", - "test:smoke": "turbo run build --filter=\"@example/*\" --output-logs=new-only", + "test:smoke": "turbo run build --filter=\"@example/*\" --filter=\"astro.build\" --filter=\"docs\" --output-logs=new-only", "test:vite-ci": "turbo run test --output-logs=new-only --no-deps --scope=astro --concurrency=1", "test:e2e": "cd packages/astro && pnpm playwright install && pnpm run test:e2e", "test:e2e:match": "cd packages/astro && pnpm playwright install && pnpm run test:e2e:match", @@ -61,7 +61,10 @@ "rollup", "@babel/core", "@babel/plugin-transform-react-jsx", - "vite" + "vite", + "react", + "react-dom", + "@types/react" ] }, "patchedDependencies": {