Skip to content

Commit

Permalink
Sets Java version to 11 and simplifies node version retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
SHession committed Jan 20, 2022
1 parent 5ad3553 commit 2d42b44
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/sbt-node-snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,14 @@ jobs:
run: echo INPUT_DEBUG=${{ inputs.DEBUG }} >> $GITHUB_ENV
shell: bash

- name: Get node version
run: echo NODE_VERSION=$(cat .nvmrc) >> $GITHUB_ENV

- uses: snyk/actions/setup@0.3.0
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: '.nvmrc'

- uses: actions/setup-java@v2
with:
java-version: "8"
java-version: "11"
distribution: "adopt"

- name: Snyk monitor
Expand Down

0 comments on commit 2d42b44

Please sign in to comment.