Skip to content

Don’t use xvfb-run in Windows or macOS #107

Don’t use xvfb-run in Windows or macOS

Don’t use xvfb-run in Windows or macOS #107

Workflow file for this run

name: main
on: [push, pull_request]
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
- run: npm install
- run: npm test
if: ${{matrix.os!='ubuntu-latest'}}
- run: xvfb-run npm test
if: ${{matrix.os=='ubuntu-latest'}}
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
- run: npx vsce package
- uses: actions/upload-artifact@v4
with:
name: vscode-remark.vsix
path: '*.vsix'