-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 898 Bytes
/
Copy pathbackend-ci.yml
File metadata and controls
38 lines (33 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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