diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..65e3cf814 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: "build" + +on: + push: + branches: + - main + pull_request: + +jobs: + check: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Java + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 17 + + - name: build + uses: gradle/gradle-build-action@v2 + with: + arguments: build --full-stacktrace + + - name: Upload reports + if: failure() + uses: actions/upload-artifact@v3 + with: + name: 'reports' + path: '**/build/reports/**'