mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
Fix uploading artifacts on PRs
This commit is contained in:
1 parent
5a7d3f4ee5
commit
2899a08c76
2 files changed
+26
-4
No files matched your search
@@ -1,11 +1,9 @@
|
|||||||
# Builds and tests the project with Gradle
|
# Builds, tests the project with Gradle and uploads to Modrinth
|
||||||
name: Java CI
|
name: Java CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ 'master' ]
|
||||||
pull_request:
|
|
||||||
branches: [ "master" ]
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# Carry out tests on pull requests
|
||||||
|
name: PR Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [ 'master' ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up JDK 16
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: '16'
|
||||||
|
distribution: 'temurin'
|
||||||
|
- name: Test Pull Request
|
||||||
|
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
||||||
|
with:
|
||||||
|
arguments: build test
|
||||||
Reference in new issue
Block a user