From d0f5838cacda886a6618992ff1dcc8808cc83e7e Mon Sep 17 00:00:00 2001 From: Corwin Perren Date: Sun, 9 Nov 2025 15:56:36 -0800 Subject: [PATCH] Copy staging test updates to prod --- .gitea/workflows/build-production.yaml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build-production.yaml b/.gitea/workflows/build-production.yaml index 10151dc..aeec4db 100644 --- a/.gitea/workflows/build-production.yaml +++ b/.gitea/workflows/build-production.yaml @@ -4,7 +4,7 @@ on: branches: [main] jobs: - determine_version: + test: runs-on: ubuntu-latest outputs: repo_name: ${{ steps.project_metadata.outputs.REPO_NAME }} @@ -17,7 +17,21 @@ jobs: - name: Setup Node Environment uses: actions/setup-node@v4 - - name: Acquire Project Metadata + - name: Setup Project Dependencies + run: | + npm ci + npx playwright install --with-deps + + - name: Build Project + run: npm run build + + - name: Run Unit Tests + run: npm run test + + - name: Run E2E Tests + run: npm run e2e-test + + - name: Set Project Metadata id: project_metadata run: | echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT @@ -25,7 +39,7 @@ jobs: build_and_push: runs-on: ubuntu-latest - needs: determine_version + needs: test steps: - name: Checkout caperren-com Repository uses: actions/checkout@v4 @@ -55,12 +69,6 @@ jobs: REPO_VERSION_HASH=${{ needs.determine_version.outputs.repo_version_hash }} BUILD_ENVIRONMENT=production - test: - runs-on: ubuntu-latest - needs: build_and_push - steps: - - run: echo "Placeholder" - deploy_production: runs-on: ubuntu-latest needs: test