diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ecf34a1ff3..c53024e2af 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -294,6 +294,43 @@ jobs: if-no-files-found: ignore retention-days: 1 + app-build-with-packed: + runs-on: ubuntu-latest + needs: build + + steps: + # https://github.com/actions/virtual-environments/issues/1187 + - name: tune linux network + run: sudo ethtool -K eth0 tx off rx off + + - name: Setup Node@${{ env.NODE_VERSION }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + + - name: Install pnpm + uses: pnpm/action-setup@v3 + with: + version: ${{ env.PNPM_VERSION }} + run_install: false + + - name: Restore build + uses: actions/cache@v4 + timeout-minutes: 10 + with: + path: ./* + key: ${{ github.sha }}-${{ github.run_number }} + + - run: | + pnpm run script:pack --dest templates/blank-3.0 + cd templates/blank-3.0 + cp .env.example .env + ls -la + pnpm add ./*.tgz + pnpm install + cat package.json + pnpm run build + tests-type-generation: if: false # This should be replaced with gen on a real Payload project runs-on: ubuntu-latest