Last active
December 1, 2023 19:37
-
-
Save diamantidis/f2ffb96d6e874b23b5b39a9f51d91314 to your computer and use it in GitHub Desktop.
GitHub Actions for a Scala project (unit tests, code coverage, scalafmt)
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
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run tests | |
run: sbt coverage test | |
- name: Coverage Report | |
run: sbt coverageReport | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
fail_ci_if_error: true | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Formatting | |
run: sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment