diff --git a/.github/workflows/build_pull_request.yml b/.github/workflows/build_pull_request.yml new file mode 100644 index 0000000..3b271dd --- /dev/null +++ b/.github/workflows/build_pull_request.yml @@ -0,0 +1,30 @@ +name: Build Pull Request + +on: + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4.1.2 + - name: set up JDK 11 + uses: actions/setup-java@v4.2.1 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Generate required local propeties file + run: | + echo "server.client.id=\"your_server_client_id\"" > local.properties + echo "api.url=\"your_api_url\"" >> local.properties + echo "api.key=\"your_api_key\"" >> local.properties + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build +