Skip to content

Full migration to LSP4IJ #2

Full migration to LSP4IJ

Full migration to LSP4IJ #2

Workflow file for this run

name: Build
on: [push, workflow_dispatch]
jobs:
build-intellij:
runs-on: ubuntu-latest
steps:
- name: Checkout the plugin GitHub repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
working-directory: ./intellij-plugin

Check failure on line 14 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 14, Col: 9): Unexpected value 'working-directory' .github/workflows/build.yml (Line: 21, Col: 9): Unexpected value 'working-directory'
with:
distribution: zulu
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
working-directory: ./intellij-plugin
with:
gradle-home-cache-cleanup: true
- name: Check repository content
working-directory: ./intellij-plugin
shell: bash
run: pwd && ls -la
- name: Test plugin
working-directory: ./intellij-plugin
shell: bash
run: ./gradlew test
- name: Build plugin
working-directory: ./intellij-plugin
shell: bash
run: ./gradlew buildPlugin
- name: Prepare Plugin Artifact
id: artifact
working-directory: ./intellij-plugin
shell: bash
run: |
cd ${{ github.workspace }}/build/distributions
FILENAME=`ls *.zip`
unzip "$FILENAME" -d content
echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT
echo "zip artifact name:"
echo "$FILENAME"
- name: Publish built plugin to artifacts
working-directory: ./intellij-plugin
uses: actions/upload-artifact@v4
with:
name: ${{ steps.artifact.outputs.filename }}
path: ./build/distributions/content/*/*