-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1.15 KB
/
build.yml
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: Build
on:
push:
pull_request:
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Fix pip version
run: python -m pip install --upgrade pip==20.3.4
- name: Install python dependencies
run: python -m pip install -r requirements.txt
- name: Run test and coverage
run: sbt clean coverage +test coverageReport
### Release part
- name: Publish on Codacy
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_API_TOKEN }}
coverage-reports: target/scala-2.13/coverage-report/cobertura.xml
- name: Tag release
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: sbt ciReleaseTagNextVersion
### If completed, this workflow trigger deploy.yaml