Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Pull Request
'on':
# push:
# branches:
# - master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
env:
ACTION_JDK_VERSION: openjdk8
SCALA_VERSION: 2.13.7
steps:
# - uses: jwalton/gh-find-current-pr@v1
# id: findPr
# with:
# # Can be "open", "closed", or "all". Defaults to "open".
# state: open
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK
uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
# - name: Before Install
# - uses: actions/checkout@v2
# - run: |
# if [ "x${ENCRYPTION_PASSWORD}" != "x" ]; then
# openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in secring.gpg.enc -out local.secring.gpg -d
# openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in pubring.gpg.enc -out local.pubring.gpg -d
# openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in credentials.sbt.enc -out local.credentials.sbt -d
# fi
# - name: Cache Coursier Cache
# uses: coursier/[email protected]
- run: sbt ++$SCALA_VERSION clean coverage test
- run: sbt ++$SCALA_VERSION coverageReport
- run: sbt ++$SCALA_VERSION coverageAggregate
# - name: Cache multiple paths
# uses: actions/cache@v2
# with:
# path: |-
# $HOME/.sbt
# $HOME/.ivy2
# key: '${{ runner.os }}-${{ hashFiles(''TODO'') }}'
# - uses: actions/checkout@v2

# build:
# runs-on: '${{ matrix.os }}'
# strategy:
# matrix:
# os:
# - ubuntu-18.04
# steps:
# - name: Cache multiple paths
# uses: actions/cache@v2
# with:
# path: |-
# $HOME/.sbt
# $HOME/.ivy2
# key: '${{ runner.os }}-${{ hashFiles(''TODO'') }}'
# - uses: actions/checkout@v2
# - run: |
# if [ "x${ENCRYPTION_PASSWORD}" != "x" ]; then
# openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in secring.gpg.enc -out local.secring.gpg -d
# openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in pubring.gpg.enc -out local.pubring.gpg -d
# openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in credentials.sbt.enc -out local.credentials.sbt -d
# fi
# - run: _JAVA_OPTIONS=
# - run: sbt -J-Xms256m ++$TRAVIS_SCALA_VERSION -jvm-opts jvmopts clean coverage test
# - run: sbt -J-Xms256m ++$TRAVIS_SCALA_VERSION coverageReport
# - run: sbt -J-Xms256m ++$TRAVIS_SCALA_VERSION coverageAggregate
# - run: sbt -J-Xms256m ++$TRAVIS_SCALA_VERSION codacyCoverage
# - run: >
# test "${TRAVIS_PULL_REQUEST}" = 'false' && test
# "${TRAVIS_JDK_VERSION}" = 'openjdk8' && sbt ++$TRAVIS_SCALA_VERSION
# 'set credentials += Credentials("Sonatype Nexus Repository Manager",
# "oss.sonatype.org", System.getenv("SONATYPE_USER"),
# System.getenv("SONATYPE_PASS"))' clean publishSigned