diff --git a/.github/workflows/ci_build-debug.yml b/.github/workflows/ci_build-debug.yml new file mode 100644 index 00000000000..45681841ea0 --- /dev/null +++ b/.github/workflows/ci_build-debug.yml @@ -0,0 +1,76 @@ +name: "CI :: Build - Debug" + +on: + push: + branches: [buildkite-debug] + +env: + TMPDIR: "/tmp" + +jobs: + run: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - name: "Checkout @ GitHub default" + uses: actions/checkout@v3 + + - name: "Checkout @ Simulated squashed-merge if PR" + id: checkout_pr + uses: ./.github/actions/checkout-pr + with: + ref: ${{ github.base_ref }} + + - name: "Setup CI patterns" + id: ci_patterns + uses: ./.github/actions/setup-ci-patterns + + - name: "Setup environment" + uses: ./.github/actions/setup-env + + - name: "FULL → Bootstrap" + env: + PLAYWRIGHT_BASE__installDeps: "true" + uses: ./.github/actions/bootstrap + + - name: "FULL → Build" + env: + WEBPACK__minimize: "false" + WEBPACK__tsLoaderTranspileOnly: "false" + KIE_TOOLS_BUILD__runLinters: "false" + KIE_TOOLS_BUILD__runTests: "false" + KIE_TOOLS_BUILD__runEndToEndTests: "true" + KIE_TOOLS_BUILD__buildContainerImages: "false" + KIE_TOOLS_BUILD__buildExamples: "false" + KIE_TOOLS_BUILD__ignoreTestFailures: "true" + KIE_TOOLS_BUILD__ignoreEndToEndTestFailures: "true" + DISPLAY: ":99.0" + START_SERVER_AND_TEST_INSECURE: "true" + NODE_OPTIONS: "--max_old_space_size=4096" + run: >- + pnpm -F vscode-extension-dashbuilder-editor... -r --workspace-concurrency=1 build:prod + + - name: "Upload end-to-end tests results to Buildkite (`main` only)" + shell: bash + env: + BUILDKITE_ANALYTICS_TOKEN: ${{ secrets.BUILDKITE_TOKEN }} + BUILDKITE_BRANCH: ${{ github.ref_name }} + BUILDKITE_MESSAGE: ${{ github.event.commits[0].message }} + run: | + eval "find -P * -type f ${{ steps.ci_patterns.outputs.end_to_end_tests_reports_patterns_for_find }}" + echo "---------------------------- starting upload -----------------------" + eval "find -P * -type f ${{ steps.ci_patterns.outputs.end_to_end_tests_reports_patterns_for_find }}" | xargs -I{} curl -X POST \ + -H "Authorization: Token token=\"$BUILDKITE_ANALYTICS_TOKEN\"" \ + -F "format=junit" \ + -F "data=@{}" \ + -F "run_env[CI]=github_actions" \ + -F "run_env[key]=$GITHUB_ACTION-$GITHUB_RUN_NUMBER-$GITHUB_RUN_ATTEMPT" \ + -F "run_env[number]=$GITHUB_RUN_NUMBER" \ + -F "run_env[branch]=$BUILDKITE_BRANCH" \ + -F "run_env[commit_sha]=$GITHUB_SHA" \ + -F "run_env[message]=$BUILDKITE_MESSAGE" \ + -F "run_env[url]=https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" \ + https://analytics-api.buildkite.com/v1/uploads