Skip to content

Update zio to 2.1.12 #387

Update zio to 2.1.12

Update zio to 2.1.12 #387

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: ['**']
tags: [v*]
jobs:
ci:
# run on external PRs, but not on internal PRs since those will be run by push to branch or internal steward's PR
if: |
github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name != github.repository ||
github.event.pull_request.user.login == 'softwaremill-ci'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scala-version: [ "2.12", "2.13", "3" ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
cache: 'sbt'
- name: Compile
run: sbt -v compile
- name: Test
run: sbt -v test
- uses: actions/upload-artifact@v3 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: 'tests-results-${{ matrix.scala-version }}-${{ matrix.target-platform }}-${{ matrix.java }}'
path: '**/test-reports/TEST*.xml'
label:
name: Attach automerge label
# skip fast so that the non-steward actions output is not polluted with failed job
if: github.event.pull_request.user.login == 'softwaremill-ci'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Count number of files changed
id: count-changed-files
run: |
N=$(git diff --name-only -r HEAD^1 HEAD | wc -w)
echo "changed_files_num=$(git diff --name-only -r HEAD^1 HEAD | wc -w)"
echo "changed_files_num=$N" >> $GITHUB_OUTPUT
- name: Launch labeler
if: steps.count-changed-files.outputs.changed_files_num == 1
uses: srvaroa/labeler@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
auto-merge:
name: Auto merge
# skip fast so that the non-steward actions output is not polluted with failed job
if: github.event.pull_request.user.login == 'softwaremill-ci'
needs: [ci, label]
runs-on: ubuntu-latest
steps:
- id: automerge
name: automerge
uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_METHOD: "squash"