Skip to content

Commit

Permalink
ci(GitHub): generate and submit dependencies in the main build workfl…
Browse files Browse the repository at this point in the history
  • Loading branch information
amal committed Sep 16, 2023
1 parent 79b1bee commit ac2aa2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 62 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ env:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"

jobs:
checks:
buildAndCheck:
name: 'Build and check'
timeout-minutes: 25
runs-on: 'ubuntu-latest'
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
permissions: # The Dependency Submission API requires write permission
contents: write

steps:
- name: Harden Runner
Expand All @@ -56,17 +58,22 @@ jobs:
with:
gradle-home-cache-cleanup: true
cache-read-only: ${{ (github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev') }}
dependency-graph: generate-and-submit

- name: 'Build and check plugin itself'
run: ./gradlew build assemble check --continue --stacktrace --scan

- name: 'Check "latest" setup example'
working-directory: checks/latest
run: ./gradlew check --continue --stacktrace --scan
env:
GITHUB_DEPENDENCY_GRAPH_ENABLED: false

- name: 'Check "js-only" setup example'
working-directory: checks/js-only
run: ./gradlew check --continue --stacktrace --scan
env:
GITHUB_DEPENDENCY_GRAPH_ENABLED: false

- name: "Add build scan URL as PR comment"
uses: actions/github-script@v6
Expand Down
61 changes: 0 additions & 61 deletions .github/workflows/deps-submission.yml

This file was deleted.

0 comments on commit ac2aa2a

Please sign in to comment.