Skip to content
Closed
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
61 changes: 33 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ jobs:
continue-on-error: true
steps:
- name: Git Checkout
uses: actions/checkout@v7
uses: actions/checkout@v7.0.1
with:
fetch-depth: '0'
- name: Install libuv
run: sudo apt-get update && sudo apt-get install -y libuv1-dev
- name: Setup Scala
uses: actions/setup-java@v5
uses: actions/setup-java@v5.7.0
with:
distribution: corretto
java-version: '17'
check-latest: true
- name: Setup SBT
uses: sbt/setup-sbt@v1
uses: sbt/setup-sbt@v1.5.7
- name: Cache Dependencies
uses: coursier/cache-action@v8
uses: coursier/cache-action@v8.1.1
- name: Check all code compiles
run: free --si -tmws 10 & sbt +Test/compile
- name: Check artifacts build process
Expand All @@ -57,21 +57,21 @@ jobs:
continue-on-error: false
steps:
- name: Git Checkout
uses: actions/checkout@v7
uses: actions/checkout@v7.0.1
with:
fetch-depth: '0'
- name: Install libuv
run: sudo apt-get update && sudo apt-get install -y libuv1-dev
- name: Setup Scala
uses: actions/setup-java@v5
uses: actions/setup-java@v5.7.0
with:
distribution: corretto
java-version: '17'
check-latest: true
- name: Setup SBT
uses: sbt/setup-sbt@v1
uses: sbt/setup-sbt@v1.5.7
- name: Cache Dependencies
uses: coursier/cache-action@v8
uses: coursier/cache-action@v8.1.1
- name: Check if the site workflow is up to date
run: free --si -tmws 10 & sbt ciCheckGithubWorkflow
- name: Lint
Expand Down Expand Up @@ -100,17 +100,17 @@ jobs:
- name: Install libuv
run: sudo apt-get update && sudo apt-get install -y libuv1-dev
- name: Setup Scala
uses: actions/setup-java@v5
uses: actions/setup-java@v5.7.0
with:
distribution: corretto
java-version: ${{ matrix.java }}
check-latest: true
- name: Setup SBT
uses: sbt/setup-sbt@v1
uses: sbt/setup-sbt@v1.5.7
- name: Cache Dependencies
uses: coursier/cache-action@v8
uses: coursier/cache-action@v8.1.1
- name: Git Checkout
uses: actions/checkout@v7
uses: actions/checkout@v7.0.1
with:
fetch-depth: '0'
- name: Test
Expand All @@ -122,21 +122,21 @@ jobs:
if: ${{ (github.event_name == 'release') && (github.event.action == 'published') }}
steps:
- name: Git Checkout
uses: actions/checkout@v7
uses: actions/checkout@v7.0.1
with:
fetch-depth: '0'
- name: Install libuv
run: sudo apt-get update && sudo apt-get install -y libuv1-dev
- name: Setup Scala
uses: actions/setup-java@v5
uses: actions/setup-java@v5.7.0
with:
distribution: corretto
java-version: '17'
check-latest: true
- name: Setup SBT
uses: sbt/setup-sbt@v1
uses: sbt/setup-sbt@v1.5.7
- name: Cache Dependencies
uses: coursier/cache-action@v8
uses: coursier/cache-action@v8.1.1
- name: Generate Readme
run: free --si -tmws 10 & sbt docs/generateReadme
- name: Commit Changes
Expand All @@ -153,7 +153,7 @@ jobs:
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v8
uses: peter-evans/create-pull-request@v8.1.1
with:
body: |-
Autogenerated changes after running the `sbt docs/generateReadme` command of the [zio-sbt-website](https://zio.dev/zio-sbt) plugin.
Expand All @@ -162,6 +162,7 @@ jobs:
- After each release, I will update the version in the installation section.
- After any changes to the "docs/index.md" file, I will update the README.md file accordingly.
branch: zio-sbt-website/update-readme
base: ${{ github.event.repository.default_branch }}
commit-message: Update README.md
token: ${{ steps.generate-token.outputs.token }}
delete-branch: true
Expand All @@ -186,7 +187,11 @@ jobs:
- lint
- test
- build
if: always()
steps:
- name: Report Failed CI
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: 'echo "ci failed: one or more required jobs did not succeed"; exit 1'
- name: Report Successful CI
run: echo "ci passed"
release:
Expand All @@ -195,24 +200,24 @@ jobs:
continue-on-error: false
needs:
- ci
if: ${{ ((github.event_name == 'release') && (github.event.action == 'published')) || (github.event_name == 'workflow_dispatch') }}
if: ${{ (((github.event_name == 'release') && (github.event.action == 'published')) || (github.event_name == 'workflow_dispatch')) || ((github.event_name == 'push') && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch))) }}
steps:
- name: Git Checkout
uses: actions/checkout@v7
uses: actions/checkout@v7.0.1
with:
fetch-depth: '0'
- name: Install libuv
run: sudo apt-get update && sudo apt-get install -y libuv1-dev
- name: Setup Scala
uses: actions/setup-java@v5
uses: actions/setup-java@v5.7.0
with:
distribution: corretto
java-version: '17'
check-latest: true
- name: Setup SBT
uses: sbt/setup-sbt@v1
uses: sbt/setup-sbt@v1.5.7
- name: Cache Dependencies
uses: coursier/cache-action@v8
uses: coursier/cache-action@v8.1.1
- name: Release
run: free --si -tmws 10 & sbt ci-release
env:
Expand All @@ -229,23 +234,23 @@ jobs:
if: ${{ ((github.event_name == 'release') && (github.event.action == 'published')) || (github.event_name == 'workflow_dispatch') }}
steps:
- name: Git Checkout
uses: actions/checkout@v7
uses: actions/checkout@v7.0.1
with:
fetch-depth: '0'
- name: Install libuv
run: sudo apt-get update && sudo apt-get install -y libuv1-dev
- name: Setup Scala
uses: actions/setup-java@v5
uses: actions/setup-java@v5.7.0
with:
distribution: corretto
java-version: '17'
check-latest: true
- name: Setup SBT
uses: sbt/setup-sbt@v1
uses: sbt/setup-sbt@v1.5.7
- name: Cache Dependencies
uses: coursier/cache-action@v8
uses: coursier/cache-action@v8.1.1
- name: Setup NodeJs
uses: actions/setup-node@v6
uses: actions/setup-node@v7.0.0
with:
node-version: 24.12.0
registry-url: https://registry.npmjs.org
Expand All @@ -260,7 +265,7 @@ jobs:
if: ${{ ((github.event_name == 'release') && (github.event.action == 'published')) || (github.event_name == 'workflow_dispatch') }}
steps:
- name: Git Checkout
uses: actions/checkout@v7
uses: actions/checkout@v7.0.1
with:
fetch-depth: '0'
- name: notify the main repo about the new release of docs package
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val zioSbtVersion = "0.6.3"
val zioSbtVersion = "0.7.1"
val scalaNativeVersion = "0.5.12"

addSbtPlugin(("dev.zio" % "zio-sbt-ecosystem" % zioSbtVersion).exclude("org.scala-native", "sbt-scala-native"))
Expand Down
Loading