This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
Update scala-library to 2.13.13 #438
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: Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- 1.5.x | |
- 1.3.x | |
- 1.2.x | |
jobs: | |
test: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
scala: [ 2.13.4, 2.12.17 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Scala | |
uses: olafurpg/setup-scala@v10 | |
- name: Cache | |
uses: coursier/cache-action@v5 | |
- name: Test | |
run: sbt ++${{ matrix.scala }} test | |
doc: | |
name: Documentation and Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Scala | |
uses: olafurpg/setup-scala@v10 | |
- name: Cache | |
uses: coursier/cache-action@v5 | |
- name: Documentation | |
id: doc | |
run: sbt doc | |
- name: Check Formatting | |
run: sbt scalafmtCheckAll | |
mill: | |
name: Mill Sanity Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Scala | |
uses: olafurpg/setup-scala@v10 | |
- name: Cache | |
uses: coursier/cache-action@v5 | |
- name: Setup Mill | |
uses: jodersky/[email protected] | |
- name: Mill sanity check | |
id: mill | |
run: mill __.compile | |
all_tests_passed: | |
name: "all tests passed" | |
needs: [test, doc, mill] | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo Success! | |
publish: | |
needs: [all_tests_passed] | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Scala | |
uses: olafurpg/setup-scala@v10 | |
- name: Cache Scala | |
uses: coursier/cache-action@v5 | |
- name: Setup GPG (for Publish) | |
uses: olafurpg/setup-gpg@v3 | |
- name: Publish | |
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 }} |