From 66dc601b960b9928c4e6fa7c77ef04652df52f2c Mon Sep 17 00:00:00 2001 From: Dejan Mijic Date: Fri, 23 Aug 2024 22:39:06 +0200 Subject: [PATCH] Regenerate workflow --- .github/workflows/ci.yml | 43 +++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 469d0b559..48e26906f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,9 @@ env: pull_request: branches-ignore: - gh-pages +concurrency: + group: ${{ github.workflow }}-${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.run_id || github.ref }} + cancel-in-progress: true jobs: build: name: Build @@ -22,19 +25,19 @@ jobs: continue-on-error: true steps: - name: Git Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 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@v4.1.0 + uses: actions/setup-java@v4 with: distribution: corretto java-version: '17' check-latest: true - name: Cache Dependencies - uses: coursier/cache-action@v6.4.5 + uses: coursier/cache-action@v6 - name: Check all code compiles run: sbt +Test/compile - name: Check artifacts build process @@ -47,19 +50,19 @@ jobs: continue-on-error: false steps: - name: Git Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 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@v4.1.0 + uses: actions/setup-java@v4 with: distribution: corretto java-version: '17' check-latest: true - name: Cache Dependencies - uses: coursier/cache-action@v6.4.5 + uses: coursier/cache-action@v6 - name: Check if the site workflow is up to date run: sbt ciCheckGithubWorkflow - name: Lint @@ -79,15 +82,15 @@ jobs: - name: Install libuv run: sudo apt-get update && sudo apt-get install -y libuv1-dev - name: Setup Scala - uses: actions/setup-java@v4.1.0 + uses: actions/setup-java@v4 with: distribution: corretto java-version: ${{ matrix.java }} check-latest: true - name: Cache Dependencies - uses: coursier/cache-action@v6.4.5 + uses: coursier/cache-action@v6 - name: Git Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: fetch-depth: '0' - name: Test @@ -99,19 +102,19 @@ jobs: if: ${{ github.event_name == 'push' }} steps: - name: Git Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 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@v4.1.0 + uses: actions/setup-java@v4 with: distribution: corretto java-version: '17' check-latest: true - name: Cache Dependencies - uses: coursier/cache-action@v6.4.5 + uses: coursier/cache-action@v6 - name: Generate Readme run: sbt docs/generateReadme - name: Commit Changes @@ -128,7 +131,7 @@ jobs: app_private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Create Pull Request id: cpr - uses: peter-evans/create-pull-request@v6.0.1 + uses: peter-evans/create-pull-request@v6 with: body: |- Autogenerated changes after running the `sbt docs/generateReadme` command of the [zio-sbt-website](https://zio.dev/zio-sbt) plugin. @@ -173,19 +176,19 @@ jobs: if: ${{ github.event_name != 'pull_request' }} steps: - name: Git Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 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@v4.1.0 + uses: actions/setup-java@v4 with: distribution: corretto java-version: '17' check-latest: true - name: Cache Dependencies - uses: coursier/cache-action@v6.4.5 + uses: coursier/cache-action@v6 - name: Release run: sbt ci-release env: @@ -202,19 +205,19 @@ jobs: if: ${{ ((github.event_name == 'release') && (github.event.action == 'published')) || (github.event_name == 'workflow_dispatch') }} steps: - name: Git Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 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@v4.1.0 + uses: actions/setup-java@v4 with: distribution: corretto java-version: '17' check-latest: true - name: Cache Dependencies - uses: coursier/cache-action@v6.4.5 + uses: coursier/cache-action@v6 - name: Setup NodeJs uses: actions/setup-node@v4 with: @@ -233,7 +236,7 @@ jobs: if: ${{ (github.event_name == 'release') && (github.event.action == 'published') }} steps: - name: Git Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: fetch-depth: '0' - name: notify the main repo about the new release of docs package