diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..1a50879 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,27 @@ +## Pull Request Description + +Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. + +Fixes (link to the issue here) + +## Type of change + +Please delete options that are not relevant. + +- [ ] Bug fix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Chore / Documentation +- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) + +## How Has This Been Tested? + +Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration + +- [ ] Locally tested against Fireblocks API + +## Checklist: + +- [ ] I have performed a self-review of my own code +- [ ] I have made corresponding changes to the documentation +- [ ] Any dependent changes have been merged and published in downstream modules +- [ ] I have added corresponding labels to the PR diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..197fe04 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,56 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: '🚀 Features' + labels: + - 'feature' + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '🧰 Maintenance' + label: 'chore' +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. +version-resolver: + major: + labels: + - 'major' + - 'breaking' + minor: + labels: + - 'minor' + - 'enhancement' + patch: + labels: + - 'patch' + - 'bug' + default: patch +template: | + ## Changes + + $CHANGES +autolabeler: + - label: 'chore' + files: + - '*.md' + branch: + - '/docs{0,1}\/.+/' + - label: 'bug' + branch: + - '/fix\/.+/' + title: + - '/fix/i' + - '/bugfix/i' + - label: 'enhancement' + title: + - '/added/i' + - '/add/i' + - '/feature/i' + - '/feat/i' + - '/support/i' + - '/enable/i' + branch: + - '/feature\/.+/' diff --git a/.github/workflows/build-maven.yml b/.github/workflows/build-maven.yml new file mode 100644 index 0000000..c4f4eae --- /dev/null +++ b/.github/workflows/build-maven.yml @@ -0,0 +1,30 @@ +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build Fireblocks API + runs-on: ubuntu-latest + strategy: + matrix: + java: [11, 17, 21] + distribution: [temurin, oracle] + exclude: + # Oracle JDK is only supported for JDK 17 and later + - java: 11 + distribution: oracle + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: ${{ matrix.distribution }} + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/.github/workflows/maven.yml b/.github/workflows/publish-maven.yml similarity index 67% rename from .github/workflows/maven.yml rename to .github/workflows/publish-maven.yml index cfc6f1c..9c4395f 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/publish-maven.yml @@ -1,4 +1,4 @@ -name: Java CI with Maven +name: Publish Maven on: release: @@ -11,12 +11,12 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: java-version: '11' distribution: 'temurin' - name: Publish package run: mvn --batch-mode deploy env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..ecba06c --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,16 @@ +name: Release Drafter + +on: + push: + branches: + - master + pull_request: + types: [opened, reopened, synchronize] + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}