From bb21bc0e8e58835d690c8f28d14cbb17e2d0c502 Mon Sep 17 00:00:00 2001 From: daz Date: Fri, 26 Jan 2024 10:15:01 -0700 Subject: [PATCH] More workflow fixes --- .github/workflows/ci-codeql.yml | 39 --------------------- .github/workflows/ci-dependency-review.yml | 20 ----------- .github/workflows/ci-init-script-check.yml | 26 -------------- .github/workflows/ci-quick-check.yml | 40 ---------------------- 4 files changed, 125 deletions(-) delete mode 100644 .github/workflows/ci-codeql.yml delete mode 100644 .github/workflows/ci-dependency-review.yml delete mode 100644 .github/workflows/ci-init-script-check.yml diff --git a/.github/workflows/ci-codeql.yml b/.github/workflows/ci-codeql.yml deleted file mode 100644 index 4519f21f..00000000 --- a/.github/workflows/ci-codeql.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: CI-codeql - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - schedule: - - cron: '25 23 * * 2' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'javascript-typescript' ] - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: ${{ matrix.language }} - config: | - paths: - - src - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/ci-dependency-review.yml b/.github/workflows/ci-dependency-review.yml deleted file mode 100644 index 8e4d6a31..00000000 --- a/.github/workflows/ci-dependency-review.yml +++ /dev/null @@ -1,20 +0,0 @@ -# Dependency Review Action -# -# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging. -# -# Source repository: https://github.com/actions/dependency-review-action -# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement -name: CI-dependency-review -on: [pull_request] - -permissions: - contents: read - -jobs: - dependency-review: - runs-on: ubuntu-latest - steps: - - name: 'Checkout Repository' - uses: actions/checkout@v4 - - name: 'Dependency Review' - uses: actions/dependency-review-action@v4 diff --git a/.github/workflows/ci-init-script-check.yml b/.github/workflows/ci-init-script-check.yml deleted file mode 100644 index fef303a7..00000000 --- a/.github/workflows/ci-init-script-check.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: CI-init-script-check - -on: - push: - paths: - - '.github/workflows/ci-init-script-check.yml' - - 'src/resources/init-scripts/**' - - 'test/init-scripts/**' - workflow_dispatch: - -jobs: - test-init-scripts: - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Setup Java - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: 8 - - name: Setup Gradle - uses: gradle/gradle-build-action@v2.12.0 # Use a released version to avoid breakages - - name: Run integration tests - working-directory: test/init-scripts - run: ./gradlew check diff --git a/.github/workflows/ci-quick-check.yml b/.github/workflows/ci-quick-check.yml index 87744ff7..28ca07fd 100644 --- a/.github/workflows/ci-quick-check.yml +++ b/.github/workflows/ci-quick-check.yml @@ -7,50 +7,23 @@ on: - main - release/** -jobs: - build-distribution: - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Build and upload distribution - uses: ./.github/actions/build-dist - - run-unit-tests: - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Configure Gradle as default for unit test - uses: ./ - with: - gradle-version: 8.5 - - name: Run tests - run: | - npm install - npm run all - action-inputs: - needs: build-distribution uses: ./.github/workflows/integ-test-action-inputs.yml with: runner-os: '["ubuntu-latest"]' cache-cleanup: - needs: build-distribution uses: ./.github/workflows/integ-test-cache-cleanup.yml with: runner-os: '["ubuntu-latest"]' cache-key-prefix: ${{github.run_number}}- # Requires a fresh cache entry each run caching-config: - needs: build-distribution uses: ./.github/workflows/integ-test-caching-config.yml with: runner-os: '["ubuntu-latest"]' dependency-graph: - needs: build-distribution uses: ./.github/workflows/integ-test-dependency-graph.yml permissions: contents: write @@ -58,25 +31,21 @@ jobs: runner-os: '["ubuntu-latest"]' dependency-graph-failures: - needs: build-distribution uses: ./.github/workflows/integ-test-dependency-graph-failures.yml with: runner-os: '["ubuntu-latest"]' execution-with-caching: - needs: build-distribution uses: ./.github/workflows/integ-test-execution-with-caching.yml with: runner-os: '["ubuntu-latest"]' execution: - needs: build-distribution uses: ./.github/workflows/integ-test-execution.yml with: runner-os: '["ubuntu-latest"]' develocity-injection: - needs: build-distribution uses: ./.github/workflows/integ-test-inject-develocity.yml with: runner-os: '["ubuntu-latest"]' @@ -84,13 +53,11 @@ jobs: DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_SOLUTIONS_ACCESS_TOKEN }} provision-gradle-versions: - needs: build-distribution uses: ./.github/workflows/integ-test-provision-gradle-versions.yml with: runner-os: '["ubuntu-latest"]' restore-configuration-cache: - needs: build-distribution uses: ./.github/workflows/integ-test-restore-configuration-cache.yml with: runner-os: '["ubuntu-latest"]' @@ -98,39 +65,32 @@ jobs: GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }} restore-containerized-gradle-home: - needs: build-distribution uses: ./.github/workflows/integ-test-restore-containerized-gradle-home.yml restore-custom-gradle-home: - needs: build-distribution uses: ./.github/workflows/integ-test-restore-custom-gradle-home.yml restore-gradle-home: - needs: build-distribution uses: ./.github/workflows/integ-test-restore-gradle-home.yml with: runner-os: '["ubuntu-latest"]' restore-java-toolchain: - needs: build-distribution uses: ./.github/workflows/integ-test-restore-java-toolchain.yml with: runner-os: '["ubuntu-latest"]' sample-kotlin-dsl: - needs: build-distribution uses: ./.github/workflows/integ-test-sample-kotlin-dsl.yml with: runner-os: '["ubuntu-latest"]' sample-gradle-plugin: - needs: build-distribution uses: ./.github/workflows/integ-test-sample-gradle-plugin.yml with: runner-os: '["ubuntu-latest"]' toolchain-detection: - needs: build-distribution uses: ./.github/workflows/integ-test-detect-java-toolchains.yml with: runner-os: '["ubuntu-latest"]'