diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 162cf16..9a1a467 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -229,53 +229,19 @@ jobs: ./gradlew --scan buildArtifact ./gradlew shadowJar mv build/libs/*.jar build/libs/footprint_${VERSION}.jar - ls -al - ls -al dist/ - ls -al docker/ - ls -al build/libs - ls -al terraform/ - ls -al terraform_deploy/ - - ######################################################################### - # Test - ######################################################################### - # - name: SonarCloud Scan - # uses: sonarsource/sonarcloud-github-action@master - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - # with: - # args: > - # -Dsonar.organization=${{ github.repository_owner }} - # -Dsonar.projectKey=${{ github.repository_owner }}_l2ss-py - # -Dsonar.python.coverage.reportPaths=build/reports/coverage.xml - # -Dsonar.sources=podaac/ - # -Dsonar.tests=tests/ - # -Dsonar.projectName=l2ss-py - # -Dsonar.projectVersion=${{ env.software_version }} - # -Dsonar.python.version=3.8,3.9,3.10 - - # - name: Java Debugging - # run: | - # java --version - # which java - # ls -al /usr/bin/java - - - # # This step will fail the build if snyk fails - - name: Run Snyk as a blocking step - uses: snyk/actions/gradle@master - env: - SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} - JAVA_HOME: /usr/lib/jvm/default-java/ - with: - command: test - args: > - --org=${{ secrets.SNYK_ORG_ID }} - --project-name=${{ github.repository }} - --severity-threshold=high - --fail-on=all + - name: Run Snyk as a blocking step + uses: snyk/actions/gradle@master + env: + SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} + JAVA_HOME: /usr/lib/jvm/default-java/ + with: + command: test + args: > + --org=${{ secrets.SNYK_ORG_ID }} + --project-name=${{ github.repository }} + --severity-threshold=high + --fail-on=all # Lastly run the tests bundled with the repo - name: Test and coverage