Update scala-library to 2.13.15 #146
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
paths-ignore: | |
- '**/README.md' | |
push: | |
branches: ['series/2.x'] | |
paths-ignore: | |
- '**/README.md' | |
release: | |
types: | |
- published | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: ['11', '14', '17'] | |
name: Build project | |
steps: | |
- name: Checkout current branch | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'adopt' | |
cache: 'sbt' | |
- name: Cache scala dependencies | |
uses: coursier/cache-action@v6 | |
- name: Run tests | |
run: sbt test | |
publish: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 60 | |
needs: [test] | |
if: github.event_name != 'pull_request' | |
steps: | |
- name: Checkout current branch | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Scala | |
uses: olafurpg/setup-scala@v13 | |
- name: Release | |
run: sbt ci-release | |
env: | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} |