Skip to content

Commit

Permalink
CI update
Browse files Browse the repository at this point in the history
  • Loading branch information
biandratti committed Sep 27, 2023
1 parent 61bad07 commit ffb5ab6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,17 @@ env:
JAVA_VERSION: '1.11.0.19'

jobs:
format_compile_lint:
compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: coursier/setup-action@v1
with:
jvm: temurin:${{env.JAVA_VERSION}}
apps: sbt
- name: Compile
run: sbt compile
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -27,6 +37,14 @@ jobs:
apps: sbt
- name: Check format
run: sbt checkFormat
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: coursier/setup-action@v1
with:
jvm: temurin:${{env.JAVA_VERSION}}
apps: sbt
- name: Scalafix Lint
run: sbt scalafixLint
- name: Scapegoat Lint
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/dependency-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ name: Dependency check
on:
workflow_dispatch:

env:
JAVA_VERSION: '1.11.0.19'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
- uses: coursier/setup-action@v1
with:
java-version: '11'
distribution: 'temurin'
cache: 'sbt'
jvm: temurin:${{env.JAVA_VERSION}}
apps: sbt
- name: DependencyCheck
run: sbt -v -Dfile.encoding=UTF-8 dependencyCheck
- name: Print DependencyCheck Result
Expand Down

0 comments on commit ffb5ab6

Please sign in to comment.