Skip to content

draft implementation for supporting java.util.Currency as StandardType #2417

draft implementation for supporting java.util.Currency as StandardType

draft implementation for supporting java.util.Currency as StandardType #2417

Workflow file for this run

name: CI
env:
JDK_JAVA_OPTIONS: -XX:+PrintCommandLineFlags -Xmx6G -Xss4M -XX:+UseG1GC # JDK_JAVA_OPTIONS is _the_ env. variable to use for modern Java
JVM_OPTS: -XX:+PrintCommandLineFlags -Xmx6G -Xss4M -XX:+UseG1GC # for Java 8 only (sadly, it is not modern enough for JDK_JAVA_OPTIONS)
NODE_OPTIONS: --max_old_space_size=6144
on:
pull_request:
push:
branches: ['main']
release:
types:
- published
jobs:
lint:
runs-on: ubuntu-20.04
timeout-minutes: 30
strategy:
fail-fast: false
steps:
- name: Checkout current branch
uses: actions/checkout@v3.0.0
with:
fetch-depth: 0
- name: Setup Scala and Java
uses: olafurpg/setup-scala@v13
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Lint code
run: sbt fmtCheck fixCheck
build:
runs-on: ubuntu-20.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
java: ['adopt@1.8', 'adopt@1.11']
scala: ['2.12.17', '2.13.8', '3.2.1']
steps:
- uses: actions/checkout@v3.0.0
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v13
with:
java-version: ${{ matrix.java }}
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Run tests
run: sbt ++${{ matrix.scala }}! test
publish:
runs-on: ubuntu-20.04
timeout-minutes: 45
needs: [build,lint]
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v3.0.0
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v13
- 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 }}