diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1195444..0a5fcda 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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. @@ -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 @@ -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: @@ -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: @@ -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 @@ -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 diff --git a/project/plugins.sbt b/project/plugins.sbt index 8acaf0b..be5b216 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,4 +1,4 @@ -val zioSbtVersion = "0.6.3" +val zioSbtVersion = "0.7.0" val scalaNativeVersion = "0.5.12" addSbtPlugin(("dev.zio" % "zio-sbt-ecosystem" % zioSbtVersion).exclude("org.scala-native", "sbt-scala-native"))