Skip to content

Optimize cancellable fork when it's cancelled before starting (#338) #1393

Optimize cancellable fork when it's cancelled before starting (#338)

Optimize cancellable fork when it's cancelled before starting (#338) #1393

Workflow file for this run

name: CI
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
tags: [ v* ]
jobs:
ci:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
java: [ "21", "24" ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'sbt'
- uses: sbt/setup-sbt@v1
- name: Check formatting
run: sbt -v scalafmtCheckAll
- name: Compile
run: sbt -v compile
- name: Compile documentation
run: sbt -v compileDocumentation
- name: Test
run: sbt -v test
- uses: actions/upload-artifact@v4 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: 'tests-results-java-${{ matrix.java }}'
path: '**/test-reports/TEST*.xml'
publish:
uses: softwaremill/github-actions-workflows/.github/workflows/publish-release.yml@main
needs: [ci]
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
secrets: inherit
with:
java-version: '21'
label:
# only for PRs by softwaremill-ci
if: github.event.pull_request.user.login == 'softwaremill-ci'
uses: softwaremill/github-actions-workflows/.github/workflows/label.yml@main
auto-merge:
# only for PRs by softwaremill-ci
if: github.event.pull_request.user.login == 'softwaremill-ci'
needs: [ ci, label ]
uses: softwaremill/github-actions-workflows/.github/workflows/auto-merge.yml@main