github: run checks for PRs

This commit is contained in:
Harsh Shandilya 2021-10-04 18:13:47 +05:30
parent bdd6acc01c
commit 2c49d08759
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -5,6 +5,10 @@ on:
branches: branches:
- main - main
pull_request:
branches:
- main
jobs: jobs:
run-unit-tests: run-unit-tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -56,7 +60,7 @@ jobs:
arguments: spotlessCheck arguments: spotlessCheck
deploy-release-snapshot: deploy-release-snapshot:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')" if: "github.event_name == 'push'"
needs: [ "run-unit-tests", "stylecheck" ] needs: [ "run-unit-tests", "stylecheck" ]
steps: steps: