Update sbt-native-packager to 1.10.4 #205
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |