diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 48ac100..68720a1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,13 +18,20 @@ jobs: build: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - java: 11 + - java: 17 + - java: 21 steps: - uses: actions/checkout@v4 - - name: Set up JDK 11 - uses: actions/setup-java@v3 + - name: Set up JDK + uses: actions/setup-java@v4 with: - java-version: '11' + java-version: ${{matrix.java}} distribution: 'temurin' cache: 'sbt' - name: Compile @@ -33,5 +40,5 @@ jobs: run: sbt "unitTests / test" - name: Run integration tests run: sbt "integrationTests / test" - - name: Run all tests using Scala 3 + - name: Run all tests using Scala 3 LTS run: sbt ";++3.3.3;testAll" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c218159 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: Release +on: + push: + branches: [master, main] + tags: ["*"] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 11 + cache: sbt + - run: sbt ci-release + env: + PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} + PGP_SECRET: ${{ secrets.PGP_SECRET }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} diff --git a/build.sbt b/build.sbt index fd7635d..5f9849b 100644 --- a/build.sbt +++ b/build.sbt @@ -1,3 +1,23 @@ +inThisBuild(List( + organization := "io.github.scoquelin", + homepage := Some(url("https://github.com/scoquelin/arugula")), + licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")), + developers := List( + Developer( + "scoquelin", + "Sébastien Coquelin", + "seb.coquelin at gmail.com", + url("https://www.github.com/scoquelin") + ), + Developer( + "72squared", + "John Loehrer", + "72squared at gmail.com", + url("https://www.github.com/72squared") + ) + ) +)) + ThisBuild / version := "0.1.0-SNAPSHOT" ThisBuild / scalaVersion := "2.13.14" diff --git a/project/plugins.sbt b/project/plugins.sbt new file mode 100644 index 0000000..d77db57 --- /dev/null +++ b/project/plugins.sbt @@ -0,0 +1 @@ +addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12") \ No newline at end of file