Skip to content

Commit

Permalink
chore: Added test, lint and dependency-graph CI actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dutrevis committed May 23, 2024
1 parent 479ea53 commit fab3058
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Scala CI

on:
push:
branches:
- main
- development
pull_request:
branches:
- main
- development

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
run: sbt coverageOn coverage test
- name: Coverage Report
run: sbt coverageReport
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Formatting
run: sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck
dependency-graph:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update Dependency Graph
uses: scalacenter/sbt-dependency-submission@v3
permissions:
contents: write

0 comments on commit fab3058

Please sign in to comment.