Skip to content

Test the distribution #4

Test the distribution

Test the distribution #4

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.
name: Test the distribution
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Unit test plugins
run: ./gradlew ":plugins:test"
- name: Publish plugins locally
run: ./gradlew ":plugins:publishToMavenLocal"
- name: Build the custom distribution zip
run: ./gradlew ":distribution:distZip"
- name: Integration test the custom distribution
run: ./gradlew ":integration-test:test"