mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-02 21:51:01 +00:00
63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ '**' ]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Fetch Sources
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
|
|
- name: Run Tests
|
|
run: ./gradlew check
|
|
|
|
- name: Collect Tests Result
|
|
if: ${{ failure() }}
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: tests-result
|
|
path: ${{ github.workspace }}/build/reports/tests
|
|
|
|
verify:
|
|
name: Verify Plugin
|
|
needs: [ build ]
|
|
runs-on: ubuntu-latest
|
|
if: ${{ false }} # Disable temporarily
|
|
steps:
|
|
- name: Maximize Build Space
|
|
uses: jlumbroso/free-disk-space@main
|
|
with:
|
|
tool-cache: false
|
|
large-packages: false
|
|
|
|
- name: Fetch Sources
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
|
|
- name: Run Plugin Verification tasks
|
|
run: ./gradlew runPluginVerifier
|
|
|
|
- name: Collect Plugin Verifier Result
|
|
if: ${{ always() }}
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: pluginVerifier-result
|
|
path: ${{ github.workspace }}/build/reports/pluginVerifier
|