7
7
runs-on : ${{ matrix.os }}
8
8
strategy :
9
9
matrix :
10
- os : [ubuntu-latest, windows-latest]
10
+ os : [windows-latest]
11
11
steps :
12
12
- name : Checkout
13
13
uses : actions/checkout@v2
@@ -25,25 +25,25 @@ jobs:
25
25
npm run build-ci
26
26
shell : bash
27
27
28
- - name : Prepare artifacts
29
- if : matrix.os == 'ubuntu-latest'
30
- run : |
31
- mkdir artifacts
32
- cp dist/*.vsix artifacts
28
+ # - name: Prepare artifacts
29
+ # if: matrix.os == 'ubuntu-latest'
30
+ # run: |
31
+ # mkdir artifacts
32
+ # cp dist/*.vsix artifacts
33
33
34
- - name : Upload artifacts
35
- uses : actions/upload-artifact@master
36
- if : matrix.os == 'ubuntu-latest'
37
- with :
38
- name : vscode-codeql-extension
39
- path : artifacts
34
+ # - name: Upload artifacts
35
+ # uses: actions/upload-artifact@master
36
+ # if: matrix.os == 'ubuntu-latest'
37
+ # with:
38
+ # name: vscode-codeql-extension
39
+ # path: artifacts
40
40
41
41
test :
42
42
name : Test
43
43
runs-on : ${{ matrix.os }}
44
44
strategy :
45
45
matrix :
46
- os : [ubuntu-latest, windows-latest]
46
+ os : [windows-latest]
47
47
steps :
48
48
- name : Checkout
49
49
uses : actions/checkout@v2
@@ -56,25 +56,27 @@ jobs:
56
56
57
57
# We have to build the dependencies in `lib` before running any tests.
58
58
- name : Build
59
+ if : matrix.os == 'windows-latest'
59
60
run : |
60
61
cd build
61
62
npm install
62
63
npm run build-ci
63
64
shell : bash
64
65
65
66
- name : Install CodeQL
67
+ if : matrix.os == 'windows-latest'
66
68
run : |
67
69
mkdir codeql-home
68
70
curl -L --silent https://github.com/github/codeql-cli-binaries/releases/latest/download/codeql.zip -o codeql-home/codeql.zip
69
71
unzip -q -o codeql-home/codeql.zip -d codeql-home
70
72
rm codeql-home/codeql.zip
71
73
shell : bash
72
74
73
- - name : Run unit tests (Linux)
74
- if : matrix.os == 'ubuntu-latest'
75
- run : |
76
- cd extensions/ql-vscode
77
- CODEQL_PATH=$GITHUB_WORKSPACE/codeql-home/codeql/codeql npm run test
75
+ # - name: Run unit tests (Linux)
76
+ # if: matrix.os == 'ubuntu-latest'
77
+ # run: |
78
+ # cd extensions/ql-vscode
79
+ # CODEQL_PATH=$GITHUB_WORKSPACE/codeql-home/codeql/codeql npm run test
78
80
79
81
- name : Run unit tests (Windows)
80
82
if : matrix.os == 'windows-latest'
@@ -83,12 +85,12 @@ jobs:
83
85
$env:CODEQL_PATH=$(Join-Path $env:GITHUB_WORKSPACE -ChildPath 'codeql-home/codeql/codeql.exe')
84
86
npm run test
85
87
86
- - name : Run integration tests (Linux)
87
- if : matrix.os == 'ubuntu-latest'
88
- run : |
89
- cd extensions/ql-vscode
90
- sudo apt-get install xvfb
91
- /usr/bin/xvfb-run npm run integration
88
+ # - name: Run integration tests (Linux)
89
+ # if: matrix.os == 'ubuntu-latest'
90
+ # run: |
91
+ # cd extensions/ql-vscode
92
+ # sudo apt-get install xvfb
93
+ # /usr/bin/xvfb-run npm run integration
92
94
93
95
- name : Run integration tests (Windows)
94
96
if : matrix.os == 'windows-latest'
0 commit comments