Skip to content

Commit

Permalink
ci: split out cargo minsize from cargo coverage for faster CI (#7733
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Boshen authored Dec 9, 2024
1 parent 2aa57c1 commit 6f38790
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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='':
Expand Down

0 comments on commit 6f38790

Please sign in to comment.