-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Random fixes across the project (#90)
- Up to 114 specification tests passing - Multiple fixes to parsing
- Loading branch information
1 parent
b5d16a7
commit 6626479
Showing
102 changed files
with
3,304 additions
and
2,393 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ env: | |
jobs: | ||
validity: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
|
@@ -38,27 +38,49 @@ jobs: | |
path: ${{ env.CACHE_PATHS }} | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Check source is valid | ||
run: cargo check --workspace | ||
|
||
- name: Check binary | ||
run: cargo check --bin ezno | ||
|
||
extras: | ||
runs-on: ubuntu-latest | ||
needs: validity | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.CACHE_PATHS }} | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- uses: dorny/paths-filter@v2 | ||
id: changes | ||
with: | ||
filters: | | ||
src: | ||
- 'src/**' | ||
parser: | ||
- 'parser/**' | ||
checker: | ||
- 'checker/**' | ||
src: | ||
- 'src/**' | ||
- name: Check source is valid | ||
run: cargo check --workspace | ||
|
||
- name: Check binary | ||
run: cargo check --bin ezno | ||
- uses: brndnmtthws/rust-action-cargo-binstall@v1 | ||
if: steps.changes.outputs.src == 'true' | ||
with: | ||
packages: [email protected] | ||
- uses: denoland/setup-deno@v1 | ||
if: steps.changes.outputs.src == 'true' | ||
with: | ||
deno-version: v1.x | ||
- uses: actions/setup-node@v3 | ||
if: steps.changes.outputs.src == 'true' | ||
with: | ||
node-version: 18 | ||
|
||
- name: Check WASM | ||
if: steps.changes.outputs.src == 'true' | ||
run: | | ||
|
@@ -68,6 +90,16 @@ jobs: | |
npm run build | ||
working-directory: src/js-cli-and-library | ||
|
||
- name: Build and test WASM | ||
if: steps.changes.outputs.src == 'true' | ||
run: | | ||
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 | ||
|
||
- name: Check parser without extras | ||
if: steps.changes.outputs.parser == 'true' | ||
run: | ||
|
@@ -77,7 +109,7 @@ jobs: | |
if: steps.changes.outputs.checker == 'true' | ||
run: | ||
cargo check -p ezno-checker --no-default-features | ||
|
||
formating: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -92,13 +124,12 @@ jobs: | |
packages: taplo-cli | ||
|
||
- name: Check TOML formatting with taplo | ||
run: | | ||
taplo fmt --check **/*/Cargo.toml | ||
run: taplo fmt --check **/*/Cargo.toml | ||
|
||
tests: | ||
needs: validity | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
timeout-minutes: 20 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
|
@@ -135,37 +166,18 @@ jobs: | |
|
||
- name: Run checker tests | ||
if: steps.changes.outputs.checker == 'true' | ||
run: cargo test -F ezno-parser | ||
run: | | ||
# Test checker with the parser features | ||
cargo test -F ezno-parser | ||
working-directory: checker | ||
|
||
- 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 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- 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 | ||
timeout-minutes: 30 | ||
timeout-minutes: 15 | ||
continue-on-error: true | ||
strategy: | ||
matrix: | ||
|
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
Oops, something went wrong.