Skip to content

Commit

Permalink
Add maven property to skip integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RVRhub committed Jul 8, 2024
1 parent a2005ea commit aca7e9d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ name: Java CI with Maven
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
mvn_options: --batch-mode -Dstyle.color=always -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss.SSS
Expand All @@ -30,4 +28,4 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: ./mvnw $mvn_options verify --file pom.xml
run: ./mvnw $mvn_options verify --file pom.xml -DskipBigQueryIntegrationTests=false
28 changes: 28 additions & 0 deletions .github/workflows/push_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven for Pull Request

on:
pull_request:
branches:
- main

jobs:
build:
strategy:
matrix:
java-version: [ 17, 21 ]
runs-on: [ ubuntu-latest, macos-latest, windows-latest ]
name: Jdk ${{ matrix.java-version }}, os ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: ./mvnw $mvn_options verify --file pom.xml -DskipBigQueryIntegrationTests=true

0 comments on commit aca7e9d

Please sign in to comment.