From 7a260466e960bb8cad5308c66f1edb6b5ea4d015 Mon Sep 17 00:00:00 2001 From: Lingxiao108105 <71265122+Lingxiao108105@users.noreply.github.com> Date: Sat, 25 Sep 2021 21:38:51 +1000 Subject: [PATCH] only test when push to main or pull_request to main --- .github/workflows/maven.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 45fd712..81fa81b 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -3,19 +3,19 @@ name: Java CI with Maven +#only test when push to main or pull_request to main on: - [push] -# push: -# branches: [ main ] -# pull_request: -# branches: [ main ] + push: + branches: [ main ] + pull_request: + branches: [ main ] #Build't job jobs: #Test's job tests: - name: Unit tests + name: Integration tests #Run on Ubuntu using the latest version runs-on: ubuntu-latest