Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/grammars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ env:
jobs:
tree-sitter-grammars:
name: Building tree-sitter (${{ matrix.os }})
if: ${{ false }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: E2E and Unit tests
on:
pull_request:
branches:
- master
- main
push:
branches:
- master
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -44,16 +44,28 @@ jobs:
node-version: 22.x
cache: "yarn"

- name: Setup EMSDK
uses: pyodide/setup-emsdk@v15
env:
EMSDK_VERSION: 4.0.15
with:
version: ${{ env.EMSDK_VERSION }}
actions-cache-folder: "emsdk-cache"
cache-key: emsdk-cache-${{ runner.os }}-${{ runner.arch }}-${{ env.EMSDK_VERSION }}

- name: Install dependencies
env:
YARN_ENABLE_HARDENED_MODE: false
run: yarn install --immutable

- name: Build WASM
run: yarn run grammar:wasm

- name: Build Extension
run: yarn build
run: yarn run build

- name: Run unit tests
run: yarn test
run: yarn run test

- name: Run e2e tests
if: matrix.os == 'ubuntu-latest'
Expand Down
Loading