forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
50 lines (41 loc) · 1.07 KB
/
action.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
49
50
name: 'Lint'
description: 'Lint TypeScript and Python code'
inputs:
node_version:
description: 'Version of Node to install'
required: true
runs:
using: 'composite'
steps:
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node_version }}
cache: 'npm'
- name: Install Node dependencies
run: npm ci --prefer-offline
shell: bash
- name: Run `gulp prePublishNonBundle`
run: npx gulp prePublishNonBundle
shell: bash
- name: Check dependencies
run: npm run checkDependencies
shell: bash
- name: Lint TypeScript code
run: npm run lint
shell: bash
- name: Check TypeScript format
run: npm run format-check
shell: bash
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: 'pip'
- name: Run Ruff
run: |
python -m pip install -U ruff
python -m ruff check .
python -m ruff format --check
working-directory: python_files
shell: bash