Skip to content

Commit

Permalink
Added snapshot on master
Browse files Browse the repository at this point in the history
  • Loading branch information
barambani committed Nov 28, 2020
1 parent f40af26 commit f9c547f
Showing 1 changed file with 36 additions and 11 deletions.
47 changes: 36 additions & 11 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: CI
on:
- pull_request
pull_request:
branches:
- '*'
push:
branches:
- master
jobs:
format:
name: Format
strategy:
matrix:
os:
- ubuntu-20.04
scala:
- 2.13.4
java:
- [email protected]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-20.04
steps:
- name: Branch Checkout
uses: actions/checkout@v2
Expand All @@ -21,7 +18,7 @@ jobs:
with:
java-version: [email protected]
- name: Check with Scalafmt
run: sbt ++${{ matrix.scala }} checkFormat
run: sbt ++2.13.4 checkFormat
build:
name: Build
strategy:
Expand All @@ -44,3 +41,31 @@ jobs:
java-version: ${{ matrix.java }}
- 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
- name: Install Java And Sbt
uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
- 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
- name: Install Java And Sbt
uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
- name: Publish Snapshot for Scala 2.13
run: CI_SNAPSHOT_RELEASE=publish sbt ++2.13.4 releaseIt

0 comments on commit f9c547f

Please sign in to comment.