-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 957 Bytes
/
master.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
39
name: master
on:
push:
branches:
- master
jobs:
job:
runs-on: ubuntu-latest
steps:
- name: Clone the repo
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Test with coverage
run: |
sbt clean coverage test
sbt coverageReport
- name: Sonar scan
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: sbt -Dsonar.login=$SONAR_TOKEN sonarScan
- name: Assemble
run: sbt "clean; set test in assembly := {}; assembly"
- name: Upload to the server
uses: garygrossgarten/github-action-scp@release
with:
local: target/scala-2.13/adjutant-assembly-0.1.jar
remote: /tmp/${{ github.sha }}.jar
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASS }}