Skip to content

chore(java): write tests for most of the JavaIconProvider #274

chore(java): write tests for most of the JavaIconProvider

chore(java): write tests for most of the JavaIconProvider #274

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- 'src/**'
- 'generate/**'
- '**gradle**'
- 'package.json'
- 'pnpm-lock.yaml'
pull_request:
paths:
- 'src/**'
- 'generate/**'
- '**gradle**'
- 'package.json'
- 'pnpm-lock.yaml'
jobs:
build:
name: Build Plugin
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true
- name: Verify Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
cache: 'gradle'
- name: Enable Corepack
run: corepack enable
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'pnpm'
- name: Install Deps
run: pnpm install
- name: Generate Icons
run: pnpm build
- name: Check Formatting
run: ./gradlew checkFormatting
- name: Run Static Analysis
run: ./gradlew runStaticAnalysis
continue-on-error: true
- name: Test & Build Plugin
run: ./gradlew buildPlugin
- name: Upload JAR(s)
uses: actions/upload-artifact@v4
with:
name: "Catppuccin Icons"
path: build/libs/*.jar
- name: Output Unreleased Changes
run: |
echo "# 🚧 Unreleased 🚧" >> $GITHUB_STEP_SUMMARY
echo "$(./gradlew getChangelog --unreleased --no-header --console=plain -q)" >> $GITHUB_STEP_SUMMARY