Skip to content

Improve PMD update procedure #54

Improve PMD update procedure

Improve PMD update procedure #54

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 }}
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: 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