rm coverage and fix README.md #6
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
tags: [ "*" ] | |
pull_request: | |
branches: | |
- master | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: [ 11 ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ matrix.java-version }} | |
- name: Cache scala dependencies | |
uses: coursier/cache-action@v6 | |
- name: Checking Code style | |
run: sbt check | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Run Test | |
run: sbt test | |
publish: | |
runs-on: ubuntu-latest | |
needs: [ check ] | |
if: github.event_name != 'pull_request' | |
steps: | |
- name: Checkout current branch | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Release artifacts | |
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 }} | |
ci: | |
runs-on: ubuntu-latest | |
needs: [ check, test ] | |
steps: | |
- name: Aggregate outcomes | |
run: echo "build succeeded" |