-
-
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.
Showing
95 changed files
with
3,633 additions
and
2,796 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ env: | |
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
hyperfine: | ||
run-benchmarks: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -34,32 +34,49 @@ jobs: | |
|
||
- name: Download files | ||
run: | | ||
curl -O https://gist.githubusercontent.com/kaleidawave/5dcb9ec03deef1161ebf0c9d6e4b88d8/raw/03156048e214af0ceee4005ba8b86f96690dcbb2/demo.ts > demo.ts | ||
curl https://esm.sh/v128/[email protected]/es2022/react-dom.mjs > react.js | ||
- name: Run parser, minfier, stringer performance | ||
- name: Run checker performance | ||
shell: bash | ||
run: | | ||
curl https://esm.sh/v128/[email protected]/es2022/react-dom.mjs > react.js | ||
# Generate a file which contains everything that Ezno currently implements | ||
cargo run -p ezno-parser --example code_blocks_to_script ./checker/specification/specification.md demo.ts | ||
echo "### Hyperfine">> $GITHUB_STEP_SUMMARY | ||
echo "\`\`\`shell">> $GITHUB_STEP_SUMMARY | ||
hyperfine './target/release/ezno ast-explorer --file react.js uglifier' >> $GITHUB_STEP_SUMMARY | ||
echo "<details> | ||
<summary>Input</summary> | ||
\`\`\`ts | ||
" >> $GITHUB_STEP_SUMMARY | ||
cat demo.ts >> $GITHUB_STEP_SUMMARY | ||
echo "\`\`\` | ||
</details> | ||
" >> $GITHUB_STEP_SUMMARY | ||
# Printing diagnostics, so turn colors off for GH Summary | ||
NO_COLOR=1 | ||
echo "<details> | ||
<summary>Diagnostics</summary> | ||
\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
./target/release/ezno check demo.ts --timings &>> $GITHUB_STEP_SUMMARY | ||
echo "\`\`\` | ||
</details> | ||
" >> $GITHUB_STEP_SUMMARY | ||
echo "### Checking | ||
\`\`\`shell" >> $GITHUB_STEP_SUMMARY | ||
hyperfine './target/release/ezno check demo.ts' >> $GITHUB_STEP_SUMMARY | ||
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
- name: Run checker performance | ||
- name: Run parser, minfier/stringer performance | ||
shell: bash | ||
if: false | ||
run: | | ||
echo "### Output">> $GITHUB_STEP_SUMMARY | ||
echo "\`\`\`shell">> $GITHUB_STEP_SUMMARY | ||
./target/release/ezno check demo.ts >> $GITHUB_STEP_SUMMARY | ||
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
echo "### Hyperfine">> $GITHUB_STEP_SUMMARY | ||
echo "\`\`\`shell">> $GITHUB_STEP_SUMMARY | ||
hyperfine './target/release/ezno check demo.ts' >> $GITHUB_STEP_SUMMARY | ||
curl https://esm.sh/v128/[email protected]/es2022/react-dom.mjs > react.js | ||
echo "### Parsing and writing out minified form of `react-dom` | ||
\`\`\`shell">> $GITHUB_STEP_SUMMARY | ||
hyperfine './target/release/ezno ast-explorer --file react.js uglifier' >> $GITHUB_STEP_SUMMARY | ||
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
- name: Print (linux) binary size | ||
|
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 |
---|---|---|
|
@@ -95,7 +95,7 @@ jobs: | |
- uses: brndnmtthws/rust-action-cargo-binstall@v1 | ||
if: ${{ github.event.inputs.ezno-version != 'none' }} | ||
with: | ||
packages: [email protected].87 | ||
packages: [email protected].89 | ||
|
||
- name: Set NPM package version & build | ||
id: set-npm-version | ||
|
@@ -140,11 +140,15 @@ jobs: | |
run: | | ||
git add . | ||
git commit -m "Release: ${{ steps.release.outputs.new-versions-description }}" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config user.name "github-actions[bot]" | ||
# Create tags | ||
echo '${{ steps.release.outputs.new-versions }}' | jq -r '.[]' | while read -r update; do | ||
git tag "release/$update" | ||
done | ||
git push --tags origin main | ||
- name: Discord | ||
|
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 |
---|---|---|
|
@@ -71,7 +71,7 @@ jobs: | |
- uses: brndnmtthws/rust-action-cargo-binstall@v1 | ||
if: steps.changes.outputs.src == 'true' | ||
with: | ||
packages: [email protected].87 | ||
packages: [email protected].89 | ||
- uses: denoland/setup-deno@v1 | ||
if: steps.changes.outputs.src == 'true' | ||
with: | ||
|
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.