-
Notifications
You must be signed in to change notification settings - Fork 49
46 lines (44 loc) · 1.44 KB
/
scip-snapshot.yml
File metadata and controls
46 lines (44 loc) · 1.44 KB
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
name: test
on:
push:
branches:
- main
- scip
pull_request:
jobs:
check:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install mise
uses: jdx/mise-action@v2.4.4
with:
version: 2025.8.10
- name: Get npm cache directory
id: npm-cache
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: 'Check package-lock.json up-to-date'
run: |
CMD="cd ./packages/pyright-scip && npm install --package-lock-only --ignore-scripts"
bash -c "$CMD"
if ! git diff --quiet; then
git diff
echo ""
echo "----------------------------------------------------------------------------------------------"
echo "Re-run $CMD and push"
echo "----------------------------------------------------------------------------------------------"
exit 1
fi
- run: npm install
- run: cd ./packages/pyright-scip/ && npm install && npm run build
- run: python --version
- run: cd ./packages/pyright-scip/ && npm run check-snapshots