Add setup-sbt to workflow #138
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, workflow_dispatch] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
# The first two permissions are needed to interact with GitHub's OIDC Token endpoint. | |
# The second set of three permissions are needed to write test results back to GH | |
permissions: | |
id-token: write | |
contents: read | |
issues: read | |
checks: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: guardian/setup-scala@v1 | |
- name: Run tests | |
run: sbt +test | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v1 | |
if: always() #runs even if there is a test failure | |
with: | |
files: target/test-reports/*.xml |