diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..e5f9c6f022 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: Build and test PRs + +on: + push + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 1000 + fetch-tags: true + + - name: Setup JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'temurin' + + - name: Setup with Gradle + uses: gradle/gradle-build-action@v2 + with: + arguments: setup + + - name: Build with Gradle + uses: gradle/gradle-build-action@v2 + with: + arguments: build \ No newline at end of file diff --git a/.github/workflows/comments.yml b/.github/workflows/comments.yml deleted file mode 100644 index 721653a26d..0000000000 --- a/.github/workflows/comments.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: 'Comment actions' - -on: issue_comment - -permissions: - contents: read - issues: write - pull-requests: write - discussions: write - -jobs: - labels: - uses: MinecraftForge/SharedActions/.github/workflows/comment_actions.yml@main - secrets: - GH_APP_KEY: ${{ secrets.GH_APP_KEY }} - GH_APP_NAME: ${{ secrets.GH_APP_NAME }} \ No newline at end of file diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml deleted file mode 100644 index b141d9938e..0000000000 --- a/.github/workflows/issues.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: 'Issue actions' - -on: issues - -permissions: - contents: read - issues: write - pull-requests: write - discussions: write - -jobs: - labels: - uses: MinecraftForge/SharedActions/.github/workflows/issue_actions.yml@main - secrets: - GH_APP_KEY: ${{ secrets.GH_APP_KEY }} - GH_APP_NAME: ${{ secrets.GH_APP_NAME }} \ No newline at end of file diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml deleted file mode 100644 index 7f44cbdb09..0000000000 --- a/.github/workflows/pull_request_review.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: 'PR Review' - -on: pull_request_review - -jobs: - upload_payload: - name: Upload payload - runs-on: ubuntu-latest - steps: - - uses: actions/upload-artifact@v3 # Payload artifact is consumed in Actionable - with: - name: payload - path: ${{ github.event_path }} \ No newline at end of file diff --git a/.github/workflows/pull_request_review_comment.yml b/.github/workflows/pull_request_review_comment.yml deleted file mode 100644 index 2c3e5bc54b..0000000000 --- a/.github/workflows/pull_request_review_comment.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: 'PR Review Comment' - -on: pull_request_review_comment - -jobs: - upload_payload: - name: Upload payload - runs-on: ubuntu-latest - steps: - - uses: actions/upload-artifact@v3 # Payload artifact is consumed in Actionable - with: - name: payload - path: ${{ github.event_path }} \ No newline at end of file diff --git a/.github/workflows/pull_request_review_comment_run.yml b/.github/workflows/pull_request_review_comment_run.yml deleted file mode 100644 index a2e8f66d5c..0000000000 --- a/.github/workflows/pull_request_review_comment_run.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: 'Pull Request Review Comment actions' - -on: - workflow_run: - workflows: [PR Review Comment] - types: - - completed - -permissions: - contents: read - issues: write - pull-requests: write - discussions: write - -jobs: - labels: - uses: MinecraftForge/SharedActions/.github/workflows/pr_review_comment_actions.yml@main - secrets: - GH_APP_KEY: ${{ secrets.GH_APP_KEY }} - GH_APP_NAME: ${{ secrets.GH_APP_NAME }} \ No newline at end of file diff --git a/.github/workflows/pull_request_review_run.yml b/.github/workflows/pull_request_review_run.yml deleted file mode 100644 index 8860c782f8..0000000000 --- a/.github/workflows/pull_request_review_run.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: 'Pull Request Review actions' - -on: - workflow_run: - workflows: [PR Review] - types: - - completed - -permissions: - contents: read - issues: write - pull-requests: write - discussions: write - -jobs: - labels: - uses: MinecraftForge/SharedActions/.github/workflows/pr_review_actions.yml@main - secrets: - GH_APP_KEY: ${{ secrets.GH_APP_KEY }} - GH_APP_NAME: ${{ secrets.GH_APP_NAME }} \ No newline at end of file diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml deleted file mode 100644 index 80ac5ea74e..0000000000 --- a/.github/workflows/pull_requests.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: 'Pull Request actions' - -on: - pull_request_target: - types: [assigned, unassigned, labeled, unlabeled, opened, edited, closed, reopened, synchronize, converted_to_draft, ready_for_review, locked, unlocked, review_requested, review_request_removed, auto_merge_enabled, auto_merge_disabled] - -permissions: - contents: read - issues: write - pull-requests: write - discussions: write - -jobs: - labels: - uses: MinecraftForge/SharedActions/.github/workflows/pr_actions.yml@main - secrets: - GH_APP_KEY: ${{ secrets.GH_APP_KEY }} - GH_APP_NAME: ${{ secrets.GH_APP_NAME }} \ No newline at end of file diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml deleted file mode 100644 index b71c8499c9..0000000000 --- a/.github/workflows/push.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: 'Push actions' - -on: push - -permissions: - contents: read - issues: write - pull-requests: write - discussions: write - -jobs: - labels: - uses: MinecraftForge/SharedActions/.github/workflows/push_actions.yml@main - secrets: - GH_APP_KEY: ${{ secrets.GH_APP_KEY }} - GH_APP_NAME: ${{ secrets.GH_APP_NAME }} \ No newline at end of file