Skip to content

Commit c179fd7

Browse files
committed
ci: run native tests on Windows
Run native tests in Windows CI. Also, we no longer depend on the Linux tests for cached results to use in the tests.
1 parent 375708b commit c179fd7

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,31 +68,32 @@ jobs:
6868
name: semgrep-results
6969
path: ./*_results.json
7070
vsce-test-windows:
71-
needs: vsce-test
7271
runs-on: windows-latest
7372
steps:
7473
- uses: actions/checkout@v4
75-
- name: Setup
74+
- uses: actions/setup-python@v5
75+
with:
76+
python-version: "3.10"
77+
- name: Install Semgrep
78+
run: python -m pip install semgrep
79+
- name: Setup Node
7680
uses: actions/setup-node@v4.0.3
7781
with:
7882
node-version: lts/*
79-
- name: install dependencies
83+
- name: install node dependencies
8084
run: npm ci
8185
# This is needed so download-lspjs.sh can run
8286
- name: configure npm
8387
run: npm config set script-shell "C:\\Program Files\\Git\\Bin\\bash.exe"
8488
# windows doesn't like long paths :(
8589
- name: Support longpaths
8690
run: git config --system core.longpaths true
91+
- name: download osemgrep pro
92+
run: ./download-osemgrep-pro.sh win32-x64
8793
- name: pretest
8894
run: npm run pretest
89-
- name: download semgrep results from linux
90-
uses: actions/download-artifact@v4
91-
with:
92-
name: semgrep-results
93-
path: ./
94-
- name: run js tests (Windows)
95-
run: npm run test-js
95+
- name: run native tests (Windows)
96+
run: npm run test-native
9697

9798
vsce-prepublish:
9899
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)