Only run pre-commit checks in GitHub actions. (#94)

Signed-off-by: Peter Nied <petern@amazon.com>
This commit is contained in:
Rabi Panda 2021-02-12 11:47:15 -08:00 committed by Peter Nied
parent 5f1c8c87b1
commit 55c50a6bb3
1 changed files with 5 additions and 7 deletions

View File

@ -1,4 +1,4 @@
name: Build and Test Search name: Search CI
on: on:
push: push:
branches: branches:
@ -8,8 +8,8 @@ on:
- main - main
jobs: jobs:
search_sanity: precommit_check:
name: Search Sanity Checks name: Precommit Checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Search - name: Checkout Search
@ -18,7 +18,5 @@ jobs:
uses: actions/setup-java@v1 uses: actions/setup-java@v1
with: with:
java-version: 14 java-version: 14
- name: Run Pre-commit Checks - name: Run Precommit Checks
run: ./gradlew precommit run: ./gradlew precommit --parallel
- name: Run Unit Tests
run: ./gradlew test --parallel