Skip to content

Fix #181: Call PMD via java directly, don't use pmd.bat anymore #101

Fix #181: Call PMD via java directly, don't use pmd.bat anymore

Fix #181: Call PMD via java directly, don't use pmd.bat anymore #101

Workflow file for this run

name: build
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install npm dependencies
run: npm ci
- name: Run Tests (Linux)
if: runner.os == 'Linux'
run: xvfb-run -a npm test
- name: Run Tests (MacOS, Windows)
if: runner.os != 'Linux'
run: npm test
- name: Upload test logs
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: vscode-test-logs-${{ matrix.os }}
path: .vscode-test/user-data/logs
- name: Package extension
if: runner.os == 'Linux'
run: npm run vscode:package
- name: Upload extension
uses: actions/upload-artifact@v4
if: runner.os == 'Linux'
with:
name: vscode-apex-pmd
path: apex-pmd-*.vsix