Skip to content

Commit dfc7602

Browse files
chore: Add CI workflow for pyright-scip linting and formatting checks
1 parent 35e66b5 commit dfc7602

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/scip-style.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: 'SCIP Style'
2+
3+
env:
4+
NODE_VERSION: '16'
5+
6+
on:
7+
push:
8+
branches:
9+
- scip
10+
pull_request:
11+
branches:
12+
- scip
13+
14+
jobs:
15+
pyright-scip-style:
16+
runs-on: ubuntu-latest
17+
name: Pyright-SCIP Style
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- uses: actions/setup-node@v3
23+
with:
24+
node-version: ${{ env.NODE_VERSION }}
25+
26+
- name: Get npm cache directory
27+
id: npm-cache
28+
run: |
29+
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
30+
- uses: actions/cache@v3
31+
with:
32+
path: ${{ steps.npm-cache.outputs.dir }}
33+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
34+
restore-keys: |
35+
${{ runner.os }}-node-
36+
37+
- run: npm install
38+
working-directory: packages/pyright-scip
39+
40+
- name: Check prettier formatting
41+
run: npm run check:prettier
42+
working-directory: packages/pyright-scip
43+
44+
- name: Check ESLint
45+
run: npm run check:eslint
46+
working-directory: packages/pyright-scip

0 commit comments

Comments
 (0)