Don’t use xvfb-run in Windows or macOS #107
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |