-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #362 from refinedmods/release/2.0.0-milestone.2.9
Release v2.0.0-milestone.2.9
- Loading branch information
Showing
244 changed files
with
4,398 additions
and
1,048 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,61 +6,7 @@ on: | |
- main | ||
pull_request: | ||
types: [ opened, synchronize, reopened ] | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: false | ||
type: string | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set version number | ||
if: "${{ inputs.version != '' }}" | ||
run: | | ||
echo "RELEASE_VERSION=${{ inputs.version }}" >> $GITHUB_ENV | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: Setup Java | ||
uses: ./.github/actions/setup-java | ||
# https://docs.sonarqube.org/latest/analysis/github-integration/ | ||
- name: Cache SonarQube packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
- name: Build and test | ||
if: ${{ github.event.pull_request.head.repo.fork }} | ||
run: ./gradlew build codeCoverageReport | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
# TODO: We have to disable Sonar for now on forked PR builds as the analyze fails due to permission issues. | ||
- name: Build, test and analyze | ||
if: ${{ !github.event.pull_request.head.repo.fork }} | ||
run: ./gradlew build codeCoverageReport sonarqube | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
- name: Publish test report | ||
uses: mikepenz/action-junit-report@v3 | ||
if: always() # always run even if the previous step fails | ||
with: | ||
report_paths: '**/build/test-results/test/TEST-*.xml' | ||
- name: Publish Checkstyle report | ||
uses: Juuxel/publish-checkstyle-report@v1 | ||
if: ${{ failure() }} | ||
with: | ||
reports: | | ||
**/build/reports/checkstyle/*.xml | ||
- name: Mutation testing | ||
run: ./gradlew pitest | ||
- name: Upload build artifacts | ||
if: ${{ runner.os == 'Linux' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Artifacts | ||
path: '**/build/libs/' | ||
uses: refinedmods/refinedarchitect/.github/workflows/[email protected] | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,60 +11,14 @@ on: | |
- major | ||
- minor | ||
- patch | ||
version-number: | ||
description: 'Version number' | ||
version-number-override: | ||
description: 'Version number override' | ||
required: false | ||
type: string | ||
jobs: | ||
draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITFLOW_PUSH_TOKEN }} | ||
- name: Get latest version from changelog | ||
if: "${{ github.event.inputs.version-number == '' }}" | ||
id: changelog | ||
uses: mindsers/changelog-reader-action@v2 | ||
with: | ||
path: ./CHANGELOG.md | ||
- name: Get version number to release (Semver) | ||
if: "${{ github.event.inputs.version-number == '' }}" | ||
uses: actions-ecosystem/action-bump-semver@v1 | ||
id: bump-semver | ||
with: | ||
current_version: ${{ steps.changelog.outputs.version }} | ||
level: ${{ github.event.inputs.release-type }} | ||
- name: Assign version number to release (Semver) | ||
if: "${{ github.event.inputs.version-number == '' }}" | ||
run: | | ||
echo "VERSION=${{ steps.bump-semver.outputs.new_version }}" >> $GITHUB_ENV | ||
- name: Assign version number to release (manual) | ||
if: "${{ github.event.inputs.version-number != '' }}" | ||
run: | | ||
echo "VERSION=${{ github.event.inputs.version-number }}" >> $GITHUB_ENV | ||
- name: Update changelog | ||
uses: thomaseizinger/[email protected] | ||
with: | ||
version: ${{ env.VERSION }} | ||
tag: v${{ env.VERSION }} | ||
- name: Commit and push changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
add: 'CHANGELOG.md' | ||
default_author: github_actor | ||
message: 'chore: prepare release v${{ env.VERSION }}' | ||
new_branch: 'release/${{ env.VERSION }}' | ||
push: true | ||
- name: Create pull request for release | ||
uses: thomaseizinger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITFLOW_PUSH_TOKEN }} | ||
with: | ||
head: release/${{ env.VERSION }} | ||
base: main | ||
title: Release v${{ env.VERSION }} | ||
body: | | ||
Hi @${{ github.actor }}! | ||
This PR was created in response to a manual trigger of the release workflow here: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}. | ||
Merging this PR will publish the release. | ||
uses: refinedmods/refinedarchitect/.github/workflows/[email protected] | ||
with: | ||
release-type: ${{ inputs.release-type }} | ||
version-number-override: ${{ inputs.version-number-override }} | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,4 @@ on: | |
types: [ labeled, unlabeled, reopened ] | ||
jobs: | ||
unsupported-labeler: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/support-requests@v3 | ||
with: | ||
github-token: ${{ github.token }} | ||
support-label: 'unsupported' | ||
issue-comment: > | ||
:wave: @{issue-author}, we no longer support this version of Refined Storage. | ||
close-issue: true | ||
lock-issue: false | ||
uses: refinedmods/refinedarchitect/.github/workflows/[email protected] |
Oops, something went wrong.