From 8928f5eac3d4d37cbaa6b9ae515eae1ead026de2 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Wed, 14 Jul 2021 11:14:31 +0000 Subject: [PATCH 1/2] Upgrade sbt and change the syntax Co-authored-by: Russ White --- build.sbt | 6 +++--- project/build.properties | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index 7575d5f50..f44997487 100644 --- a/build.sbt +++ b/build.sbt @@ -5,11 +5,11 @@ lazy val root = project.in(file(".")). name := "Scala.js DOM" -crossScalaVersions in ThisBuild := { +ThisBuild / crossScalaVersions := { if (scalaJSVersion.startsWith("1.")) Seq("2.12.10", "2.11.12", "2.13.1") else Seq("2.12.10", "2.11.12", "2.10.7", "2.13.1") } -scalaVersion in ThisBuild := crossScalaVersions.value.head +ThisBuild / scalaVersion := crossScalaVersions.value.head val commonSettings = Seq( version := "1.2.0-SNAPSHOT", @@ -114,7 +114,7 @@ lazy val readme = ScalatexReadme( ).settings( scalaVersion := "2.12.10", scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings"), - (resources in Compile) += (fullOptJS in (example, Compile)).value.data + (Compile / resources) += (example / Compile / fullOptJS).value.data ) lazy val example = project. diff --git a/project/build.properties b/project/build.properties index c0bab0494..10fd9eee0 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.2.8 +sbt.version=1.5.5 From 4173c7da26b95e619d344d5c47e4308ac4e4cdfa Mon Sep 17 00:00:00 2001 From: David Barri Date: Tue, 10 Aug 2021 13:13:45 +1000 Subject: [PATCH 2/2] Run CI on everything except release tags --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 541a99df3..5018a856b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,13 @@ name: CI + on: - push: - branches: - - master pull_request: - branches: - - master + push: + tags-ignore: + - v* + jobs: + build: runs-on: ubuntu-latest strategy: @@ -33,6 +34,7 @@ jobs: run: sbt "++${{ matrix.scalaversion }}" example/compile - name: scalafmt run: sbt "++${{ matrix.scalaversion }}" scalafmtCheck + readme: runs-on: ubuntu-latest steps: