-
Notifications
You must be signed in to change notification settings - Fork 34
41 lines (36 loc) · 1.01 KB
/
lint-extension.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
name: Lint vscode-extension
on:
push:
branches:
- main
paths:
- '.github/workflows/lint-extension.yml'
- 'packages/vscode-extension/src/**'
pull_request:
paths:
- '.github/workflows/lint-extension.yml'
- 'packages/vscode-extension/src/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
if: github.repository == 'software-mansion/radon-ide'
runs-on: ubuntu-latest
env:
WORKING_DIRECTORY: packages/vscode-extension
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: packages/vscode-extension/package-lock.json
- name: Install node dependencies
working-directory: ${{ env.WORKING_DIRECTORY }}
run: npm i
- name: Lint extension
working-directory: ${{ env.WORKING_DIRECTORY }}
run: npm run lint