-
Notifications
You must be signed in to change notification settings - Fork 35
44 lines (40 loc) · 1.22 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
39
40
41
42
43
44
name: CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Scala
uses: olafurpg/setup-scala@v11
with:
java-version: [email protected]
- name: Test
run: sbt +test
dependency-check:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Scala
uses: olafurpg/setup-scala@v11
with:
java-version: [email protected]
- name: Assembly
run: sbt "project secret-provider;set assembly / test := {}" assembly
- name: Dependency Check
uses: dependency-check/[email protected]
env:
# actions/setup-java@v1 changes JAVA_HOME so it needs to be reset to match the depcheck image
JAVA_HOME: /opt/jdk
with:
project: secret-provider-deps
path: secret-provider/target/libs/
format: 'HTML'
- name: Upload Test results
uses: actions/upload-artifact@master
with:
name: secret-provider-depcheck-results
path: ${{github.workspace}}/reports