forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kartik Raj
committed
May 4, 2023
1 parent
c249a96
commit 0697223
Showing
3 changed files
with
55 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
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@v2 | ||
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@v2 | ||
with: | ||
python-version: '3.x' | ||
cache: 'pip' | ||
|
||
- name: Check Python format | ||
run: | | ||
python -m pip install -U black | ||
python -m black . --check | ||
working-directory: pythonFiles | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters