chore(deps-dev): bump vite from 8.1.0 to 8.1.3 in /ui (#104) #307
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # GitHub Actions Workflow is created for testing and preparing the plugin release in the following steps: | |
| # - Validate Gradle Wrapper. | |
| # - Run 'test' and 'verifyPlugin' tasks. | |
| # - Run Qodana inspections. | |
| # - Run the 'buildPlugin' task and prepare artifact for further tests. | |
| # - Run the 'runPluginVerifier' task. | |
| # - Create a draft release. | |
| # | |
| # The workflow is triggered on push and pull_request events. | |
| # | |
| # GitHub Actions reference: https://help.github.com/en/actions | |
| # | |
| ## JBIJPPTPL | |
| name: Build | |
| on: | |
| # Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g., for dependabot pull requests) | |
| push: | |
| branches: [ main ] | |
| # Trigger the workflow on any pull request | |
| pull_request: | |
| # Default to least-privilege permissions for all jobs. Jobs that need more (e.g., test, inspectCode) override this. | |
| permissions: | |
| contents: read | |
| jobs: | |
| # Prepare the environment and build the plugin | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Free GitHub Actions Environment Disk Space | |
| - name: Maximize Build Space | |
| uses: jlumbroso/free-disk-space@v1.3.1 | |
| with: | |
| tool-cache: false | |
| large-packages: false | |
| # Check out the current repository | |
| - name: Fetch Sources | |
| uses: actions/checkout@v7 | |
| # Set up Node.js for building the player UI | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: ui/package-lock.json | |
| - name: Install UI dependencies | |
| run: npm ci | |
| working-directory: ui | |
| # Set up the Java environment for the next steps | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: zulu | |
| java-version: 17 | |
| # Setup Gradle | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| # Build plugin | |
| - name: Build plugin | |
| run: ./gradlew buildPlugin | |
| # Prepare plugin archive content for creating artifact | |
| - name: Prepare Plugin Artifact | |
| id: artifact | |
| shell: bash | |
| run: | | |
| cd ${{ github.workspace }}/build/distributions | |
| FILENAME=`ls *.zip` | |
| unzip "$FILENAME" -d content | |
| echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT | |
| # Store an already-built plugin as an artifact for downloading | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: ${{ steps.artifact.outputs.filename }} | |
| path: ./build/distributions/content/*/* | |
| # Run Playwright UI tests | |
| ui-test: | |
| name: UI Tests | |
| needs: [ build ] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Fetch Sources | |
| uses: actions/checkout@v7 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: ui/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| working-directory: ui | |
| - name: Install Playwright browsers | |
| run: npx playwright install chromium --with-deps | |
| working-directory: ui | |
| - name: Run Playwright tests | |
| run: npx playwright test | |
| working-directory: ui | |
| - name: Upload Playwright report | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: playwright-report | |
| path: ui/playwright-report/ | |
| # Run tests and upload a code coverage report | |
| test: | |
| name: Test | |
| needs: [ build ] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| # Free GitHub Actions Environment Disk Space | |
| - name: Maximize Build Space | |
| uses: jlumbroso/free-disk-space@v1.3.1 | |
| with: | |
| tool-cache: false | |
| large-packages: false | |
| # Check out the current repository | |
| - name: Fetch Sources | |
| uses: actions/checkout@v7 | |
| # Set up Node.js for building the player UI | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: ui/package-lock.json | |
| - name: Install UI dependencies | |
| run: npm ci | |
| working-directory: ui | |
| # Set up the Java environment for the next steps | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: zulu | |
| java-version: 17 | |
| # Setup Gradle | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| cache-read-only: true | |
| # Run tests | |
| - name: Run Tests | |
| run: ./gradlew check | |
| # Collect Tests Result of failed tests | |
| - name: Collect Tests Result | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: tests-result | |
| path: ${{ github.workspace }}/build/reports/tests | |
| # Upload Detekt SARIF for GitHub Code Scanning | |
| - name: Upload Detekt SARIF | |
| if: ${{ always() }} | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: build/reports/detekt/detekt.sarif | |
| category: detekt | |
| # Upload the Kover report to CodeCov | |
| - name: Upload Code Coverage Report | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| files: ${{ github.workspace }}/build/reports/kover/report.xml | |
| # Run Qodana inspections and provide a report | |
| inspectCode: | |
| name: Inspect code | |
| needs: [ build ] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| checks: write | |
| pull-requests: write | |
| steps: | |
| # Free GitHub Actions Environment Disk Space | |
| - name: Maximize Build Space | |
| uses: jlumbroso/free-disk-space@v1.3.1 | |
| with: | |
| tool-cache: false | |
| large-packages: false | |
| # Check out the current repository | |
| - name: Fetch Sources | |
| uses: actions/checkout@v7 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit | |
| fetch-depth: 0 # a full history is required for pull request analysis | |
| # Set up the Java environment for the next steps | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: zulu | |
| java-version: 17 | |
| # Run Qodana inspections | |
| - name: Qodana - Code Inspection | |
| uses: JetBrains/qodana-action@v2026.1.3 | |
| with: | |
| cache-default-branch-only: true | |
| # Resolve the list of IDEs that `verifyPlugin recommended()` would target, | |
| # so the verify matrix below can fan one runner out per IDE. | |
| discover-ides: | |
| name: Discover IDEs | |
| runs-on: ubuntu-latest | |
| outputs: | |
| ides: ${{ steps.list.outputs.ides }} | |
| steps: | |
| - name: Fetch Sources | |
| uses: actions/checkout@v7 | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: zulu | |
| java-version: 17 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| cache-read-only: true | |
| - name: List verifier IDEs | |
| id: list | |
| run: echo "ides=$(python3 .github/scripts/list-verifier-ides.py)" >> "$GITHUB_OUTPUT" | |
| # Run plugin structure verification along with IntelliJ Plugin Verifier. | |
| # One runner per IDE so a single IDE failure doesn't cascade through the | |
| # verifier's shared JAR-filesystem cache (see commit history for context). | |
| verify: | |
| name: "Verify (${{ matrix.ide }})" | |
| needs: [ build, discover-ides ] | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ide: ${{ fromJSON(needs.discover-ides.outputs.ides) }} | |
| steps: | |
| # Free GitHub Actions Environment Disk Space | |
| - name: Maximize Build Space | |
| uses: jlumbroso/free-disk-space@v1.3.1 | |
| with: | |
| tool-cache: false | |
| large-packages: false | |
| # Check out the current repository | |
| - name: Fetch Sources | |
| uses: actions/checkout@v7 | |
| # Set up Node.js for building the player UI | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: ui/package-lock.json | |
| - name: Install UI dependencies | |
| run: npm ci | |
| working-directory: ui | |
| # Set up the Java environment for the next steps | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: zulu | |
| java-version: 17 | |
| # Setup Gradle | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| cache-read-only: true | |
| # Run Verify Plugin task and IntelliJ Plugin Verifier tool against a single IDE | |
| - name: Run Plugin Verification tasks | |
| run: ./gradlew verifyPlugin -PverifierIde=${{ matrix.ide }} | |
| # Collect Plugin Verifier Result | |
| - name: Collect Plugin Verifier Result | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: pluginVerifier-${{ matrix.ide }} | |
| path: ${{ github.workspace }}/build/reports/pluginVerifier | |