Skip to content

Commit

Permalink
Merge pull request #122 from elm-tooling/run-tests-with-node-18
Browse files Browse the repository at this point in the history
Run tests with node 18
  • Loading branch information
razzeee authored Dec 17, 2023
2 parents 0ae8d47 + 3299858 commit ac2b629
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
node-version: 18
- run: npm i
- run: npm run build
- run: npm run test-only
Expand All @@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm i
- run: npm run build
Expand All @@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
node-version: 18
registry-url: https://npm.pkg.github.com/
- run: npm i
- run: npm run build
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [14, 16]
node-version: [18, 20]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [14, 16]
node-version: [18, 20]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion HOW_TO_RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1. Increase the version number in the package.json and the Cargo.toml
2. Run `npm run generate-types && npm run generate-wasm`
2. Run `npm run generate-wasm`
3. Push the code to main
4. Wait for tests to be successful
5. Create a release on github with the name being the version number from before prefixed with `v` for e.g. `v1.1.0`
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
"author": "Razze",
"license": "MIT",
"dependencies": {
"nan": "^2.17.0"
"nan": "^2.18.0"
},
"devDependencies": {
"@asgerf/dts-tree-sitter": "^0.1.0",
"tree-sitter-cli": "^0.20.8"
},
"scripts": {
Expand All @@ -33,7 +32,6 @@
"test-only": "tree-sitter test",
"test-highlighting": "tree-sitter highlight test/highlight/basic.elm",
"test-tags": "tree-sitter tags test/highlight/basic.elm",
"generate-types": "node ./node_modules/@asgerf/dts-tree-sitter/build/src/index.js src > index.d.ts",
"generate-wasm": "tree-sitter build-wasm && mv ./tree-sitter-elm.wasm ./docs/js/tree-sitter-elm.wasm"
},
"repository": "https://github.com/elm-tooling/tree-sitter-elm",
Expand Down

0 comments on commit ac2b629

Please sign in to comment.