Update of release process #1
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: Build and Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 15 | |
env: | |
SBT_OPTS: -Dfile.encoding=UTF-8 -Duser.timezone=UTC | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Cache Coursier | |
uses: coursier/[email protected] | |
- name: Setup JDK | |
uses: coursier/[email protected] | |
with: | |
jvm: adoptium:1.8 | |
- name: Test Code Style | |
run: | | |
sbt --client "+scalariformFormat; +test:scalariformFormat" | |
git diff --exit-code || ( | |
echo "ERROR: Scalariform check failed, see differences above." | |
echo "To fix, format your sources using sbt scalariformFormat test:scalariformFormat before submitting a pull request." | |
false | |
) | |
- name: Build | |
timeout-minutes: 10 | |
run: | | |
sbt --client "+clean; +compile; +Test/compile; +test;" |