Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ jobs:
name: Labeler
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0

- name: Update PR labels
uses: alejandrohdezma/actions/labeler@v1
if: github.event.pull_request.head.repo.full_name == github.repository
Expand Down Expand Up @@ -59,17 +66,20 @@ jobs:
- 17
steps:
- name: Checkout project
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0

- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
- name: Run Coursier Cache Action
uses: coursier/cache-action@4e2615869d13561d626ed48655e1a39e5b192b3c # v6.4.7

- name: Run Coursier Setup Action
uses: coursier/setup-action@039f736548afa5411c1382f40a5bd9c2d30e0383 # v1.3.9
with:
distribution: "liberica"
java-version: ${{ matrix.jdk }}
cache: "sbt"
jvm: liberica:${{ matrix.jdk }}
apps: sbt

- name: Run `sbt ci-test`
run: sbt ci-test
37 changes: 22 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,36 @@ on:
tags: [v*]
workflow_dispatch:

permissions:
contents: write

jobs:
release:
name: Release a new version of the artifact
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0

- name: Check latest tag follows semantic versioning
if: github.event_name == 'push'
uses: alejandrohdezma/actions/check-semver-tag@v1

- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
- name: Run Coursier Cache Action
uses: coursier/cache-action@4e2615869d13561d626ed48655e1a39e5b192b3c # v6.4.7

- name: Run Coursier Setup Action
uses: coursier/setup-action@039f736548afa5411c1382f40a5bd9c2d30e0383 # v1.3.9
with:
distribution: "liberica"
java-version: "11"
cache: "sbt"
jvm: liberica:17
apps: sbt

- name: Run `sbt ci-publish`
run: sbt ci-publish
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
Expand All @@ -59,22 +65,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
ref: main
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
ssh-key: ${{ secrets.GIT_DEPLOY_KEY }}

- name: Run Coursier Cache Action
uses: coursier/cache-action@4e2615869d13561d626ed48655e1a39e5b192b3c # v6.4.7

- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
- name: Run Coursier Setup Action
uses: coursier/setup-action@039f736548afa5411c1382f40a5bd9c2d30e0383 # v1.3.9
with:
distribution: "liberica"
java-version: "17"
cache: "sbt"
jvm: liberica:17
apps: sbt

- name: Run `sbt ci-docs`
run: sbt ci-docs
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}

- name: Commit changes by `sbt ci-docs`
Expand All @@ -91,5 +100,3 @@ jobs:
with:
message: Reset `versionPolicyIntention` [skip ci]
branch: main


6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ThisBuild / scalaVersion := "2.13.16"
ThisBuild / crossScalaVersions := Seq("2.12.20", "2.13.16", "3.3.6")
ThisBuild / organization := "com.permutive"
ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible
ThisBuild / versionPolicyIntention := Compatibility.BinaryCompatible

addCommandAlias("ci-test", "fix --check; versionPolicyCheck; mdoc; publishLocal; +test")
addCommandAlias("ci-docs", "github; mdoc; headerCreateAll")
Expand All @@ -13,9 +13,9 @@ lazy val documentation = project

lazy val refreshable = module
.settings(libraryDependencies += "org.typelevel" %% "cats-core" % "2.13.0")
.settings(libraryDependencies += "org.typelevel" %% "cats-effect" % "3.5.7")
.settings(libraryDependencies += "org.typelevel" %% "cats-effect" % "3.6.2")
.settings(libraryDependencies += "co.fs2" %% "fs2-core" % "3.12.0")
.settings(libraryDependencies += "com.github.cb372" %% "cats-retry" % "3.1.3")
.settings(libraryDependencies += "org.scalameta" %% "munit" % "1.1.1" % Test)
.settings(libraryDependencies += "org.typelevel" %% "munit-cats-effect" % "2.1.0" % Test)
.settings(libraryDependencies += "org.typelevel" %% "cats-effect-testkit" % "3.5.7" % Test)
.settings(libraryDependencies += "org.typelevel" %% "cats-effect-testkit" % "3.6.2" % Test)
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.3")
addSbtPlugin("com.alejandrohdezma" % "sbt-ci" % "2.15.1")
addSbtPlugin("com.alejandrohdezma" % "sbt-ci" % "2.19.0")
addSbtPlugin("com.alejandrohdezma" % "sbt-fix" % "0.7.2")
addSbtPlugin("com.alejandrohdezma" % "sbt-github-mdoc" % "0.12.0")
addSbtPlugin("com.alejandrohdezma" % "sbt-github-header" % "0.12.0")
Expand All @@ -12,5 +12,5 @@ addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.10.0")
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.2.1")
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.5.4")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.7.2")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.5")