Updated Readme #138
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: Backend CI | |
on: | |
push: | |
branches: [ "master", "develop" ] | |
pull_request: | |
branches: [ "master", "develop" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./backend | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Scala | |
uses: olafurpg/setup-scala@v10 | |
with: | |
java-version: "openjdk@1.17.0" | |
- name: Get commons lib | |
run: sbt publishLocal | |
working-directory: ./backend/commons | |
- name: Run Tests | |
run: sbt clean coverage test | |
working-directory: ${{ env.working-directory }} | |
- name: Coverage Report | |
run: sbt coverageAggregate | |
working-directory: ${{ env.working-directory }} | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
root_dir: ./backend |