From f519ae9190810d041982915ada74e6d4792af1e1 Mon Sep 17 00:00:00 2001 From: subject026 Date: Mon, 3 Jun 2024 13:03:42 +0200 Subject: [PATCH] fix install/build commands + rename job --- .github/workflows/website.yml | 105 ++++++++++++++-------------------- 1 file changed, 42 insertions(+), 63 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 86ec7a3..4d53f90 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -38,13 +38,13 @@ jobs: cache: "pnpm" - name: Install Dependencies - run: pnpm site install + run: pnpm website install - name: Lint - run: pnpm site run lint + run: pnpm website run lint build: - name: Next Build + name: Astro Build runs-on: ubuntu-latest steps: - name: Checkout repo @@ -60,67 +60,46 @@ jobs: with: node-version: 20 cache: "pnpm" - # run: pnpm site install - - # - name: Setup pnpm - # uses: pnpm/action-setup@v2 - # with: - # version: 8.8.0 - - - name: Install Dependencies - run: pnpm site install - - - name: Run build - run: pnpm site run build - - test: - name: Playwright Tests - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v3 - - - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: 8.8.0 - - - name: Setup node - uses: actions/setup-node@v3 - with: - node-version: 20 - cache: "pnpm" - # run: pnpm site install - name: Install Dependencies - run: pnpm site install + run: pnpm website install - name: Run build - run: pnpm site run build - - # - name: Get pnpm store directory - # id: pnpm-cache - # shell: bash - # run: | - # echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - # - uses: actions/cache@v3 - # name: Setup pnpm cache - # with: - # path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - # key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - # restore-keys: | - # ${{ runner.os }}-pnpm-store- - - - name: Install Playwright Browsers - run: pnpm site playwright install --with-deps - - - name: Run Playwright tests - run: pnpm site playwright test - - - uses: actions/upload-artifact@v3 - if: always() - with: - name: playwright-report - path: apps/site/playwright-report/ - retention-days: 30 + run: pnpm website run build + + # test: + # name: Playwright Tests + # runs-on: ubuntu-latest + # steps: + # - name: Checkout repo + # uses: actions/checkout@v3 + + # - name: Setup pnpm + # uses: pnpm/action-setup@v2 + # with: + # version: 8.8.0 + + # - name: Setup node + # uses: actions/setup-node@v3 + # with: + # node-version: 20 + # cache: "pnpm" + + # - name: Install Dependencies + # run: pnpm website install + + # - name: Run build + # run: pnpm website run build + + # - name: Install Playwright Browsers + # run: pnpm site playwright install --with-deps + + # - name: Run Playwright tests + # run: pnpm site playwright test + + # - uses: actions/upload-artifact@v3 + # if: always() + # with: + # name: playwright-report + # path: apps/site/playwright-report/ + # retention-days: 30