update 2.4.0 #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: CI | |
on: | |
pull_request: | |
push: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout (merge) | |
uses: actions/checkout@v4 | |
if: github.event_name != 'pull_request' | |
with: | |
fetch-depth: 0 | |
- name: Git checkout (PR) | |
uses: actions/checkout@v4 | |
if: github.event_name == 'pull_request' | |
with: | |
fetch-depth: 0 | |
# see: https://frontside.com/blog/2020-05-26-github-actions-pull_request/#how-does-pull_request-affect-actionscheckout | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 18 | |
cache: sbt | |
- name: Run tests | |
run: sbt clean coverage test | |
- name: Upload coverage data to Coveralls | |
run: sbt coverageReport coveralls | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }} |