From 8e9647c97548f74ca0d3f3d0726e027687e93ffb Mon Sep 17 00:00:00 2001 From: Chihiro Ito Date: Fri, 12 May 2023 14:52:36 +0900 Subject: [PATCH] Added to also test push to branch --- .github/workflows/build-test.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 3b70e8c..ec1b030 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -2,27 +2,27 @@ #act -W .github/workflows/build-test.yml name: build and test -on: [pull_request] +on: [ pull_request, push ] jobs: -# nektos/act does not support Reusable workflow and does not use Reusable workflow for development productivity + # nektos/act does not support Reusable workflow and does not use Reusable workflow for development productivity jvm-test: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - java-package: 'jdk' - cache: maven - - - name: Test with Maven on JVM - run: bash bin/test.sh + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + java-package: 'jdk' + cache: maven + + - name: Test with Maven on JVM + run: bash bin/test.sh native-test: runs-on: ubuntu-latest