fix the filePath as empty issue. (#297) #722
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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout Branch | |
uses: actions/checkout@v1 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
version: 16 | |
- name: Build Extension | |
run: | | |
npm run install:all | |
- name: Smoke test (Linux) | |
run: xvfb-run -a npm run test | |
if: runner.os == 'Linux' | |
- name: Smoke test (Mac, Windows) | |
run: npm run test | |
if: runner.os != 'Linux' | |
- name: Package Extension | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
npm install -g vsce | |
vsce package | |
mkdir vsix | |
mv *.vsix vsix | |
- name: Archive Extension | |
if: matrix.os == 'ubuntu-latest' | |
uses: actions/upload-artifact@v1 | |
with: | |
name: vsix | |
path: vsix |