Add dependency graph

Scala builds do not automatically get support for the dependency graph. This addition will upload dependency information to the dependency graph so users get Dependabot alerts.
This commit is contained in:
Justin Hutchings
2022-10-13 13:01:48 -07:00
committed by GitHub
parent da223f8a03
commit 8048d62634
+10 -3
View File
@@ -6,17 +6,24 @@ on:
pull_request:
branches: [ $default-branch ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
distribution: 'temurin'
cache: 'sbt'
- name: Run tests
run: sbt test
# This step uploads information to the GitHub dependency graph and unblocking Dependabot alerts for the repository
- name: Upload dependency graph
uses: scalacenter/sbt-dependency-submission@v2