mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
update build.yml
This commit is contained in:
31
.github/workflows/build.yml
vendored
31
.github/workflows/build.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Build Plugins
|
name: Build and test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -67,4 +67,31 @@ jobs:
|
|||||||
run: ./gradlew :libraries:plugin-tests:jar
|
run: ./gradlew :libraries:plugin-tests:jar
|
||||||
|
|
||||||
- name: Build packets
|
- name: Build packets
|
||||||
run: ./gradlew :libraries:packets:shadowJar
|
run: ./gradlew :libraries:packets:shadowJar
|
||||||
|
|
||||||
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Cache Gradle dependencies
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.gradle
|
||||||
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
|
- name: Setup Java
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: 'adopt'
|
||||||
|
java-version: '21'
|
||||||
|
|
||||||
|
- name: Modify gradlew permissions
|
||||||
|
run: chmod +x ./gradlew
|
||||||
|
|
||||||
|
- name: Build common
|
||||||
|
run: ./gradlew test
|
||||||
@@ -1,3 +1,2 @@
|
|||||||
version: $version
|
version: $version
|
||||||
build: $build
|
|
||||||
hash: $hash
|
hash: $hash
|
||||||
Reference in New Issue
Block a user