-
Notifications
You must be signed in to change notification settings - Fork 142
48 lines (39 loc) · 1.31 KB
/
pull_request_review.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Tests
on:
pull_request:
branches: [master, main, release-**]
jobs:
build:
strategy:
matrix:
node: [22.x]
os: ['windows-latest']
env:
TITLE: ${{ github.event.pull_request.title }}
runs-on: ${{ matrix.os }}
steps:
- name: Install python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Choco help
uses: crazy-max/ghaction-chocolatey@v3
with:
args: -h
- run: choco install python visualstudio2022-workload-vctools -y
- run: npm config get msvs_version
- run: npm config set msvs_version 2019 --global
- run: npm config get msvs_version
# - run: powershell "npm i -g windows-build-tools"
- name: Install Dependencies
run: npm ci
- name: Lint the code
run: npm run lint
- name: Run tests
run: npm run test-with-coverage