-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ebd5f1
commit e80321e
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/ci.yaml | ||
- .sbtopts | ||
- build.sbt | ||
- .scalafmt.conf | ||
- project/** | ||
- src/** | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.READ_PACKAGES }} | ||
|
||
jobs: | ||
code-check: | ||
runs-on: self-hosted | ||
container: | ||
image: sbtscala/scala-sbt:eclipse-temurin-jammy-21.0.2_13_1.9.9_2.12.19 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: sbt headerCheckAll | ||
test: | ||
runs-on: self-hosted | ||
container: | ||
image: sbtscala/scala-sbt:eclipse-temurin-jammy-21.0.2_13_1.9.9_2.12.19 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: sbt clean test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: publish | ||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.WRITE_PACKAGES }} | ||
|
||
jobs: | ||
publish: | ||
runs-on: self-hosted | ||
container: | ||
image: sbtscala/scala-sbt:eclipse-temurin-jammy-21.0.2_13_1.9.9_2.12.19 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: sbt publish | ||
run: | | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
sbt clean publish |