Some checks failed
Build Extension / Build (ubuntu-latest) (push) Has been cancelled
Build Extension / Build (windows-latest) (push) Has been cancelled
Build Extension / Test (ubuntu-latest) (push) Has been cancelled
Build Extension / Test (windows-latest) (push) Has been cancelled
Release / Release (push) Has been cancelled
73 lines
1.6 KiB
YAML
73 lines
1.6 KiB
YAML
name: Build Extension
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Build
|
|
run: |
|
|
cd build
|
|
npm install
|
|
npm run build-ci
|
|
shell: bash
|
|
|
|
- name: Prepare artifacts
|
|
if: matrix.os == 'ubuntu-latest'
|
|
run: |
|
|
mkdir artifacts
|
|
cp dist/*.vsix artifacts
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@master
|
|
if: matrix.os == 'ubuntu-latest'
|
|
with:
|
|
name: vscode-codeql-extension
|
|
path: artifacts
|
|
|
|
test:
|
|
name: Test
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
# We have to build the dependencies in `lib` before running any tests.
|
|
- name: Build
|
|
run: |
|
|
cd build
|
|
npm install
|
|
npm run build-ci
|
|
shell: bash
|
|
|
|
- name: Run unit tests
|
|
run: |
|
|
cd extensions/ql-vscode
|
|
npm run test
|
|
|
|
- name: Run integration tests (Linux)
|
|
if: matrix.os == 'ubuntu-latest'
|
|
run: |
|
|
cd extensions/ql-vscode
|
|
sudo apt-get install xvfb
|
|
/usr/bin/xvfb-run npm run integration
|
|
|
|
- name: Run integration tests (Windows)
|
|
if: matrix.os == 'windows-latest'
|
|
run: |
|
|
cd extensions/ql-vscode
|
|
npm run integration |