diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..56d0dd2 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,27 @@ +# Category + +This change is exactly one of the following (please change `[ ]` to `[x]`) to indicate which: +* [ ] a bug fix (Fix #...) +* [ ] a new Ripper +* [ ] a refactoring +* [ ] a style change/fix +* [ ] a new feature + + +# Description + +Please add details about your change here. + + +# Testing + +Required verification: +* [ ] I've verified that there are no regressions in `mvn test` (there are no new failures or errors). +* [ ] I've verified that this change works as intended. + * [ ] Downloads all relevant content. + * [ ] Downloads content from multiple pages (as necessary or appropriate). + * [ ] Saves content at reasonable file names (e.g. page titles or content IDs) to help easily browse downloaded content. +* [ ] I've verified that this change did not break existing functionality (especially in the Ripper I modified). + +Optional but recommended: +* [ ] I've added a unit test to cover my change. diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..2cdb476 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,64 @@ +name: CI + release + +on: + pull_request: + push: + branches: + - '**' + tags: + - '!**' + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + java: [17, 21, 22] + include: # upload from java-17 only + - java: 17 + upload: true + + steps: + + - uses: actions/checkout@v1 + + - name: Set environment CI_ variables + id: ci-env + uses: FranzDiebold/github-env-vars-action@v2.8.0 + + - name: Set up java + uses: actions/setup-java@v4.4.0 + with: + java-version: ${{ matrix.java }} + distribution: zulu + cache: gradle + + - name: Build with Gradle + run: gradle clean build -PjavacRelease=${{ matrix.java }} + + - name: SHA256 + if: matrix.upload + run: shasum -a 256 build/libs/*.jar + + - name: upload jar as asset + if: matrix.upload + uses: actions/upload-artifact@v4 + with: + name: zipped-jar + path: build/libs/*.jar + + - name: create pre-release + id: create-pre-release + if: matrix.upload + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest-${{ env.CI_REF_NAME_SLUG }}" + prerelease: true + title: "development build ${{ env.CI_REF_NAME }}" + files: | + build/libs/*.jar + +# vim:set ts=2 sw=2 et: