Update cats-core to 2.10.0 #228
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: build | |
on: | |
pull_request: | |
branches: ['*'] | |
push: | |
branches: ['*'] | |
tags: ["v[0-9]+*"] | |
jobs: | |
tests: | |
name: Unit tests (scala ${{ matrix.scala }}, scala.js ${{ matrix.scalajs }}, jvm ${{ matrix.java }}) | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-20.04] | |
java: [8, 11] | |
scala: [2.12.15, 2.13.8, 3.1.1] | |
scalajs: [1.10.0] | |
command: ["ci-test"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: olafurpg/setup-scala@v11 | |
with: | |
java-version: "adopt@1.${{ matrix.java }}" | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: sbt ++${{ matrix.scala }} ${{ matrix.command }} | |
run: | | |
./.github/scripts/build.sh | |
env: | |
SCALA_VERSION: ${{ matrix.scala }} | |
SCALAJS_VERSION: ${{ matrix.scalaJS }} | |
SBT_COMMAND: ${{ matrix.command }} | |
doc-tests: | |
name: Docs tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: olafurpg/setup-scala@v11 | |
with: | |
java-version: "[email protected]" | |
- name: sbt ci-doc | |
run: | | |
sbt -J-Xmx6144m ci-doc | |
env: | |
SCALA_VERSION: ${{ matrix.scala }} | |
SCALAJS_VERSION: ${{ matrix.scalaJS }} | |
SBT_COMMAND: ${{ matrix.command }} | |
all_tests: | |
name: All Tests | |
needs: [ tests, doc-tests ] | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Ack | |
run: | | |
echo "All done." | |
#----------------------------------------------------------------------------------- | |
# Publishing tasks | |
#----------------------------------------------------------------------------------- | |
publish_sonatype: | |
name: Publish to Sonatype | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | |
needs: [ all_tests ] | |
strategy: | |
fail-fast: true | |
max-parallel: 1 | |
matrix: | |
command: [ci-release] | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: olafurpg/setup-scala@v11 | |
with: | |
java-version: "[email protected]" | |
- name: Install GnuPG2 | |
run: | | |
./.github/scripts/setup-pgp | |
- name: .github/scripts/release | |
run: | | |
.github/scripts/release | |
env: | |
PGP_KEY_HEX: ${{ secrets.PGP_KEY_HEX }} | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
PUBLISH_STABLE_VERSION: true | |
publish_microsite: | |
name: Publish Website | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | |
needs: [ publish_sonatype ] | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: olafurpg/setup-scala@v11 | |
with: | |
java-version: "[email protected]" | |
- name: Set up Ruby 2.7 (for microsite) | |
uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 2.7.x | |
- name: Install microsite dependencies | |
run: | | |
bundle install --system --gemfile=site/Gemfile | |
- name: Publish Website | |
run: sbt +clean site/publishMicrosite | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |