diff --git a/.github/workflows/build-prs.yml b/.github/workflows/build-prs.yml new file mode 100644 index 000000000..5fad0b6d4 --- /dev/null +++ b/.github/workflows/build-prs.yml @@ -0,0 +1,23 @@ +# File generated by the GradleUtils `setupGitHubActionsWorkflows` task, avoid modifying it directly +# The template can be found at https://github.com/neoforged/GradleUtils/blob/287df22f683ed8422bc93deb9eb4a62099cc061f/src/actionsTemplate/resources/.github/workflows/build-prs.yml + +name: Build PRs + +on: + pull_request: + types: + - synchronize + - opened + - ready_for_review + - reopened + push: + branches: + - 'feature/**' + workflow_dispatch: + +jobs: + build: + uses: neoforged/actions/.github/workflows/build-prs.yml@main + with: + java: 8 + gradle_tasks: assemble diff --git a/.github/workflows/publish-prs.yml b/.github/workflows/publish-prs.yml index 213ef97d9..81e3e63b1 100644 --- a/.github/workflows/publish-prs.yml +++ b/.github/workflows/publish-prs.yml @@ -5,7 +5,7 @@ name: Publish PRs to GitHub Packages on: workflow_run: - workflows: ['Build Pull Request'] + workflows: ['Build PRs'] types: - completed issue_comment: @@ -24,7 +24,7 @@ jobs: uses: neoforged/actions/.github/workflows/publish-prs.yml@main with: artifact_base_path: net/neoforged/gradle/ - uploader_workflow_name: 'Build Pull Request' + uploader_workflow_name: 'Build PRs' secrets: PR_PUBLISHING_GH_APP_ID: ${{ secrets.PR_PUBLISHING_GH_APP_ID }} PR_PUBLISHING_GH_APP_KEY: ${{ secrets.PR_PUBLISHING_GH_APP_KEY }} diff --git a/.github/workflows/pr.yml b/.github/workflows/test-prs.yml similarity index 95% rename from .github/workflows/pr.yml rename to .github/workflows/test-prs.yml index d22125d74..4e7afb9a3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/test-prs.yml @@ -1,5 +1,5 @@ -name: 'Build Pull Request' -run-name: Build for PR ${{ github.event.pull_request.number }} +name: Test PRs +run-name: Tests for PR ${{ github.event.pull_request.number }} on: pull_request: @@ -61,9 +61,6 @@ jobs: - name: Build run: ./gradlew --info -s -x assemble - - name: Publish artifacts - uses: neoforged/action-pr-publishing/upload@v1 - test: name: Test runs-on: ubuntu-latest diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml index a8abebcde..f1a0dc7ec 100644 --- a/.github/workflows/test-report.yml +++ b/.github/workflows/test-report.yml @@ -1,7 +1,7 @@ name: 'Test Report' on: workflow_run: - workflows: ['Build Pull Request'] + workflows: ['Test PRs'] types: - completed permissions: