From 85ee80b52c2b81fd0860cb3d634165fba9891a34 Mon Sep 17 00:00:00 2001 From: Marcel Menk Date: Wed, 15 Oct 2025 18:02:36 +0200 Subject: [PATCH] fix: pull request checks --- .../actions/setup-env/action.yml | 0 .github/workflows/frontend-tsef-publish.yml | 32 +++---------------- .github/workflows/pull-request-checks.yml | 8 +++++ 3 files changed, 13 insertions(+), 27 deletions(-) rename .github/{workflows => }/actions/setup-env/action.yml (100%) diff --git a/.github/workflows/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml similarity index 100% rename from .github/workflows/actions/setup-env/action.yml rename to .github/actions/setup-env/action.yml diff --git a/.github/workflows/frontend-tsef-publish.yml b/.github/workflows/frontend-tsef-publish.yml index 88f60dd..a468c8a 100644 --- a/.github/workflows/frontend-tsef-publish.yml +++ b/.github/workflows/frontend-tsef-publish.yml @@ -13,41 +13,18 @@ concurrency: cancel-in-progress: false jobs: - setup: - uses: ./.github/workflows/_setup.yml - build: + name: Build runs-on: ubuntu-latest - needs: setup steps: - name: Checkout uses: actions/checkout@v4 - - - name: Setup Node from .nvmrc - uses: actions/setup-node@v4 with: - node-version-file: .nvmrc - - - name: Enable corepack - run: corepack enable || true - - - name: Detect package manager - id: pm - shell: bash - run: | - if [ -f pnpm-lock.yaml ]; then echo "pm=pnpm" >> $GITHUB_OUTPUT; exit 0; fi - if [ -f yarn.lock ]; then echo "pm=yarn" >> $GITHUB_OUTPUT; exit 0; fi - if [ -f package-lock.json ]; then echo "pm=npm" >> $GITHUB_OUTPUT; exit 0; fi - echo "pm=pnpm" >> $GITHUB_OUTPUT + fetch-depth: 0 - - name: Install dependencies - shell: bash - run: | - PM="${{ steps.pm.outputs.pm }}" - if [ "$PM" = "pnpm" ]; then pnpm install --frozen-lockfile; fi - if [ "$PM" = "yarn" ]; then yarn install --frozen-lockfile; fi - if [ "$PM" = "npm" ]; then npm ci; fi + - name: Setup environment + uses: ./.github/actions/setup-env - name: Build application for all languages run: npx nx build frontend-tsef --configuration=production @@ -64,6 +41,7 @@ jobs: path: 'dist/apps/frontend-tsef/browser' deploy: + name: Deploy environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} diff --git a/.github/workflows/pull-request-checks.yml b/.github/workflows/pull-request-checks.yml index b7d0b90..5e3d284 100644 --- a/.github/workflows/pull-request-checks.yml +++ b/.github/workflows/pull-request-checks.yml @@ -15,6 +15,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set Nx SHA uses: nrwl/nx-set-shas@v4 @@ -34,6 +36,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set Nx SHA uses: nrwl/nx-set-shas@v4 @@ -53,6 +57,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set Nx SHA uses: nrwl/nx-set-shas@v4 @@ -72,6 +78,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set Nx SHA uses: nrwl/nx-set-shas@v4