diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 656ce7cd5f1d7..891015959e0d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -230,6 +230,34 @@ jobs: just coverage git diff --exit-code + minification: + name: Minification Size + runs-on: ubuntu-latest + steps: + - uses: taiki-e/checkout-action@v1 + + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + src: + - '.github/workflows/ci.yml' + - 'crates/oxc_minifier/**' + - 'crates/oxc_codegen/**' + - 'tasks/minsize/**' + + - uses: Boshen/setup-rust@main + if: steps.filter.outputs.src == 'true' + with: + cache-key: minsize + save-cache: ${{ github.ref_name == 'main' }} + + - name: Check minification size + if: steps.filter.outputs.src == 'true' + run: | + cargo minsize + git diff --exit-code + ast_changes: name: AST Changes runs-on: ubuntu-latest diff --git a/justfile b/justfile index b16ee68d67654..0c28a998767d7 100755 --- a/justfile +++ b/justfile @@ -101,12 +101,11 @@ fix: typos -w git status -# Run all the conformance tests. See `tasks/coverage`, `tasks/transform_conformance`, `tasks/minsize` +# Run all the conformance tests. See `tasks/coverage`, `tasks/transform_conformance` coverage: cargo coverage cargo run -p oxc_transform_conformance -- --exec cargo run -p oxc_prettier_conformance - cargo minsize # Run Test262, Babel and TypeScript conformance suite conformance *args='':