-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from kaleidawave/parser-position-improvements
Tokens use start positions rather than Spans
- Loading branch information
Showing
119 changed files
with
3,581 additions
and
2,834 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ jobs: | |
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.CACHE_PATHS }} | ||
|
@@ -45,6 +46,19 @@ jobs: | |
- name: Check binary | ||
run: cargo check --bin ezno | ||
|
||
- uses: brndnmtthws/rust-action-cargo-binstall@v1 | ||
with: | ||
packages: [email protected] | ||
- name: Check binary WASM | ||
run: | | ||
rustup target add wasm32-unknown-unknown | ||
npm run check | ||
working-directory: src/js-cli-and-library | ||
|
||
- name: Check parser without extras | ||
run: | ||
cargo check -p ezno-parser --no-default-features | ||
|
||
formating: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -89,7 +103,12 @@ jobs: | |
- name: Run parser tests | ||
if: steps.changes.outputs.parser == 'true' | ||
run: cargo test | ||
run: | | ||
cargo test | ||
# TODO test other big libraries | ||
curl https://esm.sh/v128/[email protected]/es2022/react-dom.mjs > react.js | ||
cargo run -p ezno-parser --example parse react.js | ||
working-directory: parser | ||
|
||
- name: Run checker specification | ||
|
@@ -100,6 +119,24 @@ jobs: | |
- name: Run base tests | ||
run: cargo test | ||
|
||
- uses: brndnmtthws/rust-action-cargo-binstall@v1 | ||
with: | ||
packages: [email protected] | ||
|
||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: Build and test WASM | ||
run: | | ||
rustup target add wasm32-unknown-unknown | ||
npm ci | ||
npm run test | ||
node ./dist/cli.cjs info | ||
deno run -A ./dist/cli.mjs info | ||
working-directory: src/js-cli-and-library | ||
shell: bash | ||
|
||
fuzzing: | ||
needs: validity | ||
runs-on: ubuntu-latest | ||
|
@@ -159,51 +196,6 @@ jobs: | |
- name: Lint code with clippy | ||
run: cargo clippy | ||
|
||
wasm-test: | ||
needs: validity | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.CACHE_PATHS }} | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- uses: brndnmtthws/rust-action-cargo-binstall@v1 | ||
with: | ||
packages: [email protected] | ||
|
||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: Build | ||
run: | | ||
rustup target add wasm32-unknown-unknown | ||
npm ci | ||
npm run build | ||
working-directory: src/js-cli-and-library | ||
shell: bash | ||
|
||
- name: Test modules | ||
run: | | ||
node test.mjs | ||
deno run -A test.mjs | ||
node test.cjs | ||
working-directory: src/js-cli-and-library | ||
shell: bash | ||
|
||
- name: Check CLI works | ||
run: | | ||
node ./dist/cli.cjs info | ||
deno run -A ./dist/cli.mjs info | ||
working-directory: src/js-cli-and-library | ||
shell: bash | ||
|
||
publish-ability: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.