-
Notifications
You must be signed in to change notification settings - Fork 19
35 lines (34 loc) · 1.13 KB
/
test-artifact.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
name: Test artifact
on:
push:
branches: [ main ]
pull_request:
jobs:
test-artifact:
runs-on: ubuntu-latest
env:
GHPR_TOKEN: ${{ secrets.GHPR_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Assembly
run: sbt assembly
- name: Test
run: |
sbt coverage 'test' coverageReport
sbt "project qbeastCore" coverage 'test' coverageReport
- name: Upload to Codecov
run: |
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import # One-time step
curl -Os https://uploader.codecov.io/latest/linux/codecov
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
chmod +x codecov
./codecov -t ${{ secrets.CODECOV_TOKEN }}
- name: Formatting of code and Scaladocs
run: sbt scalafmtSbtCheck doc