Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 committed Jan 21, 2025
1 parent ca3dca7 commit 54e1241
Showing 1 changed file with 12 additions and 46 deletions.
58 changes: 12 additions & 46 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54e1241

Please sign in to comment.