From 9494b048dbd47178bd59b1030d179f1f49454a67 Mon Sep 17 00:00:00 2001 From: Pim van Nierop Date: Wed, 3 Jul 2024 11:47:44 +0200 Subject: [PATCH] Try separate style checks from functional tests --- .github/workflows/checkstyle.yml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/main.yml | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/checkstyle.yml diff --git a/.github/workflows/checkstyle.yml b/.github/workflows/checkstyle.yml new file mode 100644 index 00000000..cb0fea3a --- /dev/null +++ b/.github/workflows/checkstyle.yml @@ -0,0 +1,32 @@ +# Continuous integration, including test and integration test +name: Check code style + +# Run in master and dev branches and in all pull requests to those branches, as well as on workflow dispatch for downstream testing +on: + workflow_dispatch: + push: + branches: [ master, dev ] + pull_request: + branches: [ master, dev ] + +jobs: + # Build and test the code + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + - uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: temurin + + - uses: gradle/gradle-build-action@v2 + + # Compile the code + - name: Compile code + run: ./gradlew check -x test \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b758a00..db74affb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,7 +53,7 @@ jobs: # Gradle check - name: Check - run: GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/src/integrationTest/resources/google-credentials.json ./gradlew check + run: GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/src/integrationTest/resources/google-credentials.json ./gradlew test - name: Upload build artifacts if: always()