From 6aa71837b47af3feaf223bf3b80c81bd272dc433 Mon Sep 17 00:00:00 2001 From: Dmitry Ermakovich Date: Wed, 20 Nov 2024 12:00:30 +0300 Subject: [PATCH] feat: TMS-29071: update actions --- .github/workflows/publish.yml | 2 ++ .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3666b60..730eea1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,12 +35,14 @@ jobs: - name: Build Plugin for PyCharm run: | ./gradlew buildPlugin -PisPyCharm=true --no-build-cache --no-configuration-cache + cd build/distributions for f in testit_management-*.zip; do mv "$f" "${f/testit_management-/testit_management_PyCharm-}"; done # Build plugin for IDEA - name: Build Plugin for IDEA run: | ./gradlew buildPlugin -PisIDEA=true --no-build-cache --no-configuration-cache + cd build/distributions for f in testit_management-*.zip; do mv "$f" "${f/testit_management-/testit_management_IDEA-}"; done - name: Upload Release Asset diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f1b71f3..2a63a2d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -108,6 +108,40 @@ jobs: name: tests-result path: ${{ github.workspace }}/build/reports/tests + pre-release-check: + name: Pre Release Check + needs: [ build ] + runs-on: ubuntu-latest + steps: + # Check out current repository + - name: Fetch Sources + uses: actions/checkout@v4 + + # Set up Java environment for the next steps + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: 17 + + # Setup Gradle + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + + # Build plugin for PyCharm + - name: Build Plugin for PyCharm + run: | + ./gradlew buildPlugin -PisPyCharm=true --no-build-cache --no-configuration-cache + cd build/distributions + for f in testit_management-*.zip; do mv "$f" "${f/testit_management-/testit_management_PyCharm-}"; done + + # Build plugin for IDEA + - name: Build Plugin for IDEA + run: | + ./gradlew buildPlugin -PisIDEA=true --no-build-cache --no-configuration-cache + cd build/distributions + for f in testit_management-*.zip; do mv "$f" "${f/testit_management-/testit_management_IDEA-}"; done + # Run plugin structure verification along with IntelliJ Plugin Verifier verify: name: Verify plugin