-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (56 loc) · 1.57 KB
/
build.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CI
on:
pull_request:
branches:
- master
tags-ignore:
- '*'
push:
branches:
- master
tags-ignore:
- '*'
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup GraalVM
uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
- name: Install native-image
run: gu install native-image
- name: Print versions
run: |
java -version
native-image --version
- name: Formatting check
run: sbt fmt-check
- name: Run tests
run: sbt run-tests
- name: SonarCloud Reporting
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sbt -Dsonar.host.url=https://sonarcloud.io \
-Dsonar.projectKey=eli-jordan_alfred-jenkins \
-Dsonar.organization=eli-jordan \
-Dsonar.junit.reportPaths=./workflow/target/test-reports/*.xml \
workflow/sonarScan
- name: Publish coverage results
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./workflow/target/scala-2.13/scoverage-report/scoverage.xml
fail_ci_if_error: true
- name: Package
run: sbt run-package
- name: Save the workflow as an artifact
uses: actions/upload-artifact@v1
with:
name: Jenkins.alfredworkflow
path: workflow/target/alfred/Jenkins.alfredworkflow