Skip to content

Commit

Permalink
Removed redundant Actions workflow and fixed build error
Browse files Browse the repository at this point in the history
  • Loading branch information
tomakehurst committed Oct 9, 2024
1 parent 953a495 commit 827cfb4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 64 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Gradle CI
name: Build and test with Gradle

on: [workflow_dispatch, workflow_call, push, pull_request]

Expand All @@ -24,16 +24,31 @@ jobs:
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: "Gradle build"
- name: "Build and test"
shell: bash
run: |
java -version
javac -version
./gradlew --no-daemon build
./gradlew --no-daemon check
- name: Publish Build
uses: actions/upload-artifact@v4
if: failure()
with:
name: build-${{ github.run_number }}-${{ matrix.java }}
path: ${{ github.workspace }}
path: ${{ github.workspace }}

gradle-scan:
name: Snyk gradle scan
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Run Snyk to check build.gradle for vulnerabilities
uses: snyk/actions/gradle-jdk17@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: test
args: --severity-threshold=high --org=f310ee2f-5552-444d-84ee-ec8c44c33adb
60 changes: 0 additions & 60 deletions .github/workflows/gradle.yml

This file was deleted.

0 comments on commit 827cfb4

Please sign in to comment.