Merge branch 'main' into main #95
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: HawkScan | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-and-scan: | |
name: Build and Scan | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Setup Java and Gradle cache | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' # See 'Supported distributions' for available options | |
java-version: '11' | |
cache: gradle | |
- name: Build the app | |
run: ./gradlew build | |
- name: Test the app | |
run: ./gradlew test | |
- name: Run the app | |
run: ./gradlew bootRun & | |
- name: Test with HawkScan | |
uses: stackhawk/[email protected] | |
with: | |
apiKey: ${{ secrets.HAWK_API_KEY }} |