mirror of
https://github.com/fankes/unmeta-gradle-plugin.git
synced 2025-09-04 10:05:15 +08:00
Setup github actions
This commit is contained in:
14
.github/workflows/pre-merge.yaml
vendored
14
.github/workflows/pre-merge.yaml
vendored
@@ -21,16 +21,12 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up our JDK environment
|
||||
uses: actions/setup-java@v3.10.0
|
||||
with:
|
||||
distribution: 'corretto'
|
||||
java-version: 11
|
||||
- name: Cache Gradle Caches
|
||||
uses: gradle/gradle-build-action@v2
|
||||
- name: Run Gradle tasks
|
||||
run: ./gradlew preMerge --continue
|
||||
|
||||
# We do a run of the new task `templateExample` created by the plugin
|
||||
- name: Run the plugin
|
||||
run: ./gradlew templateExample --message="Test Run" --tag=CI
|
||||
if: success()
|
||||
# And we verify that the output of the file is correct.
|
||||
- name: Verify the plugin output
|
||||
run: grep -Fxq "[CI] Test Run" ./example/build/template-example.txt
|
||||
if: success()
|
||||
|
5
.github/workflows/publish-plugin.yaml
vendored
5
.github/workflows/publish-plugin.yaml
vendored
@@ -15,6 +15,11 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up our JDK environment
|
||||
uses: actions/setup-java@v3.10.0
|
||||
with:
|
||||
distribution: 'corretto'
|
||||
java-version: 11
|
||||
- name: Cache Gradle Caches
|
||||
uses: gradle/gradle-build-action@v2
|
||||
- name: Run Gradle tasks
|
||||
|
Reference in New Issue
Block a user