diff options
Diffstat (limited to '.github/workflows/test-hosts.yml')
-rw-r--r-- | .github/workflows/test-hosts.yml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/.github/workflows/test-hosts.yml b/.github/workflows/test-hosts.yml new file mode 100644 index 000000000..f12ed9b40 --- /dev/null +++ b/.github/workflows/test-hosts.yml @@ -0,0 +1,48 @@ +name: Hosted tests + +on: + schedule: + - cron: '0 0 * * 0' + +env: + ASTRO_TELEMETRY_DISABLED: true + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ secrets.TURBO_TEAM }} + VERCEL_ORG_ID: ${{ secrets.VERCEL_TEST_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_TEST_PROJECT_ID }} + VERCEL_TOKEN: ${{ secrets.VERCEL_TEST_TOKEN }} + FORCE_COLOR: true + +jobs: + test: + name: Run tests + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Setup PNPM + uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 + + - name: Setup Node + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + with: + node-version: 22 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Build Astro + run: pnpm turbo build --filter astro --filter @astrojs/vercel + + - name: Build test project + working-directory: ./packages/integrations/vercel/test/hosted/hosted-astro-project + run: pnpm run build + + - name: Deploy to Vercel + working-directory: ./packages/integrations/vercel/test/hosted/hosted-astro-project + run: pnpm dlx vercel --prod --prebuilt + + - name: Test + run: pnpm run test:e2e:hosts |