Update scala3-library to 3.3.3 #1963
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate PR compat report | |
on: | |
pull_request: | |
branches: ['**'] | |
jobs: | |
generate-report: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Check out PR base | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.base.sha }} | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 11 | |
cache: sbt | |
- name: Get base version | |
id: getBaseVer | |
run: sbt writeVersionToGitHubOutput | |
- run: sbt publishLocal | |
name: Publish ${{ steps.getBaseVer.outputs.result }} locally | |
- uses: actions/checkout@v4 | |
name: Check out PR | |
with: | |
fetch-depth: 0 | |
clean: false | |
- run: sbt clean compile | |
- name: Generate compatibility changes report | |
id: createReport | |
run: | | |
sbt \ | |
'set every CompatReportPlugin.previousRelease := Some("${{ steps.getBaseVer.outputs.result }}")' \ | |
writeCompatReportToGitHubOutput | |
- name: Show report saved in ${{ steps.createReport.outputs.result }} | |
run: cat ${{ steps.createReport.outputs.result }} | |
- name: Prepare artifact contents | |
run: | | |
mkdir -p ./compat-report | |
cp ${{ steps.createReport.outputs.result }} ./compat-report/compat-report.md | |
echo ${{ github.event.number }} > ./compat-report/NR.txt | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: compat-report | |
path: compat-report/ |