Skip to content

Update sbt-scalafix to 0.12.0 #364

Update sbt-scalafix to 0.12.0

Update sbt-scalafix to 0.12.0 #364

Workflow file for this run

name: CI-CD
on:
push:
branches: [ main ]
tags: [ "*" ]
pull_request:
jobs:
build:
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: self publish
run: make prePublishForSelfUse
- name: tests
run: sbt ";clean ;Test/compile ;coverage ;test; set isSnapshot := true; scripted ;coverageReport ;coveralls"
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
release:
needs: build
strategy:
fail-fast: true
runs-on: ubuntu-latest
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: release-staging
run: |
make prePublishForSelfUse
sbt ";set isSnapshot := true ; ci-release"
if: startsWith(github.ref, 'refs/tags/') != true && github.ref == 'refs/heads/main'
- name: release-production
run: |
make prePublishForSelfUse
sbt ci-release
if: startsWith(github.ref, 'refs/tags/v')