diff --git a/.github/actions/cache-build-web/action.yml b/.github/actions/cache-build-web/action.yml index 0a5c318bc3..cd8ac41e46 100644 --- a/.github/actions/cache-build-web/action.yml +++ b/.github/actions/cache-build-web/action.yml @@ -30,6 +30,10 @@ runs: **/dist/** key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }} + - name: Set Cache Hit Status + run: echo "cache-hit=${{ steps.cache-build.outputs.cache-hit }}" >> "$GITHUB_OUTPUT" + shell: bash + - name: Setup Node.js 20.x uses: actions/setup-node@v3 with: diff --git a/.github/workflows/build-web.yml b/.github/workflows/build-web.yml index d31e4d39b3..324f25f7d9 100644 --- a/.github/workflows/build-web.yml +++ b/.github/workflows/build-web.yml @@ -11,24 +11,8 @@ jobs: - uses: actions/checkout@v3 - uses: ./.github/actions/dangerous-git-checkout - - name: Setup Node.js 20.x - uses: actions/setup-node@v3 + - name: Build & Cache Web Binaries + uses: ./.github/actions/cache-build-web + id: cache-build-web with: - node-version: 20.x - - - name: Install pnpm - uses: pnpm/action-setup@v4 - - - name: Install dependencies - run: pnpm install --config.platform=linux --config.architecture=x64 - - - name: create .env - run: cp .env.example .env - - - name: Generate Random ENCRYPTION_KEY - run: | - SECRET=$(openssl rand -hex 32) - echo "ENCRYPTION_KEY=$SECRET" >> $GITHUB_ENV - - - name: Build Formbricks-web - run: pnpm build --filter=@formbricks/web... + e2e_testing_mode: "0"