diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..945b2e6 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,12 @@ +name: Pull Request Checks + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: Dependency updates check + uses: upsync-dev/sbt-dependency-updates-action@main diff --git a/README.md b/README.md index 8a24e88..ce46522 100644 --- a/README.md +++ b/README.md @@ -1 +1,7 @@ -# sbt-dependency-updates-test \ No newline at end of file +# sbt-dependency-updates-test + +This is a sample repo that shows how the [sbt-dependency-updates-action](https://github.com/UpSync-Dev/sbt-dependency-updates-action) GitHub Action can be used to add a comment to a PR when there are dependency updates found. + +Check: +* The [The GitHub Workflow](#) file for example usage +* An example [pull request](#) with a [comment](#) stating dependency updates found \ No newline at end of file diff --git a/build.sbt b/build.sbt new file mode 100644 index 0000000..e24adc8 --- /dev/null +++ b/build.sbt @@ -0,0 +1,10 @@ +ThisBuild / version := "0.1.0-SNAPSHOT" + +ThisBuild / scalaVersion := "2.13.7" + +lazy val root = (project in file(".")) + .settings( + name := "sbt-dependency-updates-test" + ) + +libraryDependencies += "org.mongodb.scala" %% "mongo-scala-driver" % "4.4.0" diff --git a/project/plugins.sbt b/project/plugins.sbt new file mode 100644 index 0000000..892d4d4 --- /dev/null +++ b/project/plugins.sbt @@ -0,0 +1 @@ +addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.1")