-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Layer constructor for Zio. Refactored existing. Added Github Ac…
…tions for CI (#254) * Added Layer constructor for Zio. Refactored existing. Added Github Actions for CI * Added snapshot on master * Add release workflow * Added cache. Removed travis file * Removed ci plugin, fixed cross build version
- Loading branch information
Showing
16 changed files
with
622 additions
and
362 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
format: | ||
name: Format | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Branch Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Java And Sbt | ||
uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: [email protected] | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
$HOME/.cache/coursier | ||
$HOME/.ivy2/cache | ||
$HOME/.sbt/boot/ | ||
$HOME/.sbt | ||
lib_managed | ||
target | ||
project/target | ||
key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
- name: Check with Scalafmt | ||
run: sbt ++2.13.4 checkFormat | ||
build: | ||
name: Build | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-20.04 | ||
scala: | ||
- 2.12.12 | ||
- 2.13.4 | ||
java: | ||
- [email protected] | ||
- [email protected] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Branch Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Java And Sbt | ||
uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
$HOME/.cache/coursier | ||
$HOME/.ivy2/cache | ||
$HOME/.sbt/boot/ | ||
$HOME/.sbt | ||
lib_managed | ||
target | ||
project/target | ||
key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
- name: Test - [ ${{ matrix.java }} ] [ ${{ matrix.scala }} ] | ||
run: sbt ++${{ matrix.scala }} ciBuild | ||
publish_212: | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
name: Publish Snapshot 2.12 | ||
needs: [format, build] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Branch Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Java And Sbt | ||
uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: [email protected] | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
$HOME/.cache/coursier | ||
$HOME/.ivy2/cache | ||
$HOME/.sbt/boot/ | ||
$HOME/.sbt | ||
lib_managed | ||
target | ||
project/target | ||
key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
- name: Publish Snapshot for Scala 2.12 | ||
run: CI_SNAPSHOT_RELEASE=publish sbt ++2.12.2 releaseIt | ||
publish_213: | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
name: Publish Snapshot 2.13 | ||
needs: publish_212 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Branch Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Java And Sbt | ||
uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: [email protected] | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
$HOME/.cache/coursier | ||
$HOME/.ivy2/cache | ||
$HOME/.sbt/boot/ | ||
$HOME/.sbt | ||
lib_managed | ||
target | ||
project/target | ||
key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
- name: Publish Snapshot for Scala 2.13 | ||
run: CI_SNAPSHOT_RELEASE=publish sbt ++2.13.4 releaseIt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Release | ||
on: | ||
release: | ||
types: | ||
- created | ||
jobs: | ||
release_212: | ||
if: github.ref == 'refs/heads/master' | ||
name: Release 2.12 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Branch Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Java And Sbt | ||
uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: [email protected] | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
$HOME/.cache/coursier | ||
$HOME/.ivy2/cache | ||
$HOME/.sbt/boot/ | ||
$HOME/.sbt | ||
lib_managed | ||
target | ||
project/target | ||
key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
- name: Release for Scala 2.12 | ||
run: CI_RELEASE=publishSigned sbt ++2.12.2 releaseIt | ||
release_213: | ||
if: github.ref == 'refs/heads/master' | ||
name: Release 2.13 | ||
needs: release_212 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Branch Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Java And Sbt | ||
uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: [email protected] | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
$HOME/.cache/coursier | ||
$HOME/.ivy2/cache | ||
$HOME/.sbt/boot/ | ||
$HOME/.sbt | ||
lib_managed | ||
target | ||
project/target | ||
key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
- name: Release for Scala 2.13 | ||
run: CI_RELEASE=publishSigned sbt ++2.13.4 releaseIt |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.