From 8017b1fe96e0728d8d3b112c25b121aa7af073c2 Mon Sep 17 00:00:00 2001 From: Ivan Subotic <400790+subotic@users.noreply.github.com> Date: Mon, 25 Jul 2022 18:25:42 +0200 Subject: [PATCH] build: add dependency checking (#2100) --- .github/workflows/dependency-graph.yml | 18 ++++++++++++++++++ .github/workflows/scala-steward.yml | 22 ++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/dependency-graph.yml create mode 100644 .github/workflows/scala-steward.yml diff --git a/.github/workflows/dependency-graph.yml b/.github/workflows/dependency-graph.yml new file mode 100644 index 0000000000..0d853bedff --- /dev/null +++ b/.github/workflows/dependency-graph.yml @@ -0,0 +1,18 @@ +name: Update Dependency Graph + +on: + push: + branches: + - main # default branch of the project + +jobs: + update-graph: + name: Update Dependency Graph + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: scalacenter/sbt-dependency-submission@v2 + with: + ## Optional: Define the working directory of your build. + ## It should contain the build.sbt file. + working-directory: './' diff --git a/.github/workflows/scala-steward.yml b/.github/workflows/scala-steward.yml new file mode 100644 index 0000000000..735d385573 --- /dev/null +++ b/.github/workflows/scala-steward.yml @@ -0,0 +1,22 @@ +name: Launch Scala Steward + +# This workflow will launch at 00:00 every Sunday +on: + schedule: + - cron: '0 0 * * 0' + workflow_dispatch: + +jobs: + scala-steward: + runs-on: ubuntu-latest + name: Launch Scala Steward + steps: + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + - name: Launch Scala Steward + uses: scala-steward-org/scala-steward-action@v2 + with: + github-token: ${{ secrets.GH_TOKEN }}