Skip to content

Commit

Permalink
ci: add tree-sitter
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamScience committed Nov 10, 2024
1 parent 5547020 commit 7599b88
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6,979 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,30 @@ on:
pull_request:
branches:
- master

jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
- name: Setup Python and Install distutils
id: py
uses: actions/setup-python@v4

- uses: actions/setup-python@v2
with:
python-version: '3.12'
- run: pip3 install setuptools
env:
PYTHON: '${{ steps.py.outputs.python-path }}'
python-version: 3.10

- run: |
python -m ensurepip --upgrade
python -m pip install --upgrade pip setuptools wheel
if [[ "$RUNNER_OS" == "macOS" ]]; then
python -m pip install distutils
fi
- run: npm install
env:
NODE_GYP_FORCE_PYTHON: '${{ steps.py.outputs.python-path }}'
- run: npm rebuild --build-from-source
env:
NODE_GYP_FORCE_PYTHON: '${{ steps.py.outputs.python-path }}'
- run: npm test
env:
NODE_GYP_FORCE_PYTHON: '${{ steps.py.outputs.python-path }}'
Loading

0 comments on commit 7599b88

Please sign in to comment.