From e6f332ecb143cf517aceda87f319096741df8289 Mon Sep 17 00:00:00 2001 From: daz Date: Sun, 19 Jan 2025 15:20:12 -0700 Subject: [PATCH] Publish build scans for CI builds --- .github/workflows/ci-check-and-unit-test.yml | 16 +++++++++++++++- .github/workflows/ci-update-dist.yml | 6 +++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-check-and-unit-test.yml b/.github/workflows/ci-check-and-unit-test.yml index 6f9bece..cce6007 100644 --- a/.github/workflows/ci-check-and-unit-test.yml +++ b/.github/workflows/ci-check-and-unit-test.yml @@ -15,6 +15,7 @@ permissions: jobs: check-format-and-unit-test: runs-on: ubuntu-latest + steps: - name: Checkout sources uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -31,13 +32,26 @@ jobs: with: gradle-version: "8.12" - - name: Check formatting and compile + - name: Install npm dependencies run: | npm clean-install + working-directory: sources + + - name: Check formatting and compile + run: | npm run check npm run compile working-directory: sources + env: + NODE_OPTIONS: '-r @gradle/develocity-agent/preload' + DEVELOCITY_URL: 'https://ge.solutions-team.gradle.com' + DEVELOCITY_ACCESS_KEY: '${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}' + - name: Run unit tests run: | npm test working-directory: sources + env: + NODE_OPTIONS: '-r @gradle/develocity-agent/preload' + DEVELOCITY_URL: 'https://ge.solutions-team.gradle.com' + DEVELOCITY_ACCESS_KEY: '${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}' diff --git a/.github/workflows/ci-update-dist.yml b/.github/workflows/ci-update-dist.yml index 6b9f27a..1f43272 100644 --- a/.github/workflows/ci-update-dist.yml +++ b/.github/workflows/ci-update-dist.yml @@ -39,7 +39,11 @@ jobs: npm run check npm run compile working-directory: sources - + env: + NODE_OPTIONS: '-r @gradle/develocity-agent/preload' + DEVELOCITY_URL: https://ge.solutions-team.gradle.com + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} + - name: Copy the generated sources/dist directory to the top-level dist run: | cp -r sources/dist .