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:
push:
branches:
@ -8,8 +8,8 @@ on:
- main
jobs:
search_sanity:
name: Search Sanity Checks
precommit_check:
name: Precommit Checks
runs-on: ubuntu-latest
steps:
- name: Checkout Search
@ -18,7 +18,5 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 14
- name: Run Pre-commit Checks
run: ./gradlew precommit
- name: Run Unit Tests
run: ./gradlew test --parallel
- name: Run Precommit Checks
run: ./gradlew precommit --parallel