Skip to content

Instantly share code, notes, and snippets.

@diamantidis
Last active December 1, 2023 19:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diamantidis/f2ffb96d6e874b23b5b39a9f51d91314 to your computer and use it in GitHub Desktop.
Save diamantidis/f2ffb96d6e874b23b5b39a9f51d91314 to your computer and use it in GitHub Desktop.
GitHub Actions for a Scala project (unit tests, code coverage, scalafmt)
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