Skip to content

Commit

Permalink
Fix usage in workspaces and add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
gn-lluis-u committed Jul 3, 2024
1 parent 5d3adfc commit b166c39
Show file tree
Hide file tree
Showing 7 changed files with 972 additions and 11 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3.1.0
- uses: actions/checkout@v4.1.7

- name: Install dependencies
run: |
yarn install
yarn install --immutable
- name: Lint the grammar
run: |
Expand All @@ -28,3 +28,14 @@ jobs:
- name: Test corpus
run: |
yarn test
integration-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4.1.7

- name: Run integration tests
run: |
cd integration-tests
yarn install --immutable
14 changes: 7 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
/public/browserapp.js

# dependencies
/node_modules
node_modules
/.pnp
.pnp.js
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
**/.yarn/*
**/!.yarn/patches
**/!.yarn/plugins
**/!.yarn/releases
**/!.yarn/sdks
**/!.yarn/versions

# testing
/coverage
Expand Down
12 changes: 12 additions & 0 deletions integration-tests/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "tree-sitter-rtf-integration-tests",
"description": "This is just an integration test to ensure that the package can be installed in a Yarn v4 workspace",
"version": "0.0.1",
"repository": "https://github.com/GoodNotes/GoodNotes-5",
"private": true,
"workspaces": {
"packages": [
"tree-sitter-rtf"
]
}
}
1 change: 1 addition & 0 deletions integration-tests/tree-sitter-rtf
Loading

0 comments on commit b166c39

Please sign in to comment.