diff --git a/.github/workflows/PR-SAP.yml b/.github/workflows/PR-SAP.yml deleted file mode 100644 index 51013196e..000000000 --- a/.github/workflows/PR-SAP.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: PR Build (SAP) - -on: - pull_request: - merge_group: - -concurrency: - group: pr-sap-${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -permissions: - contents: read - -jobs: - build-sap: - runs-on: ubuntu-latest - if: '! github.event.pull_request.head.repo.fork' - steps: - - name: Checkout SAP repo - run: | - git config --global credential.helper "cache --timeout=3600" - echo -e "url=https://user:${GH_TOKEN}@github.com\n" | git credential approve - echo -e "url=https://user:${GH_TOKEN_TOOLS_DOCS}@github.tools.sap\n" | git credential approve - git clone --depth 1 --no-single-branch https://github.tools.sap/cap/docs docs - cd docs - git checkout $GITHUB_HEAD_REF || git checkout main - git submodule update --init --recursive - cd @external - git checkout $GITHUB_HEAD_REF - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_TOKEN_TOOLS_DOCS: ${{ secrets.GH_TOKEN_TOOLS_DOCS }} - - name: Use Node.js - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: 'npm' - cache-dependency-path: docs/package-lock.json - - run: npm ci - working-directory: docs - - run: npm run lint - working-directory: docs - - run: npm run docs:build - working-directory: docs - env: - NODE_OPTIONS: "--max-old-space-size=6144" - VITE_CAPIRE_CI_HOST: "github.com" - VITE_CAPIRE_EXTRA_ASSETS: true - MAVEN_HOST: https://common.repositories.cloud.sap/artifactory/build.releases - MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }} - - run: npm test - working-directory: docs