Skip to content

Commit

Permalink
Merge branch 'main' into feat_auto_accessor_abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
swc-bot committed Apr 23, 2024
2 parents bdad4eb + d925f8a commit 66e7224
Show file tree
Hide file tree
Showing 3,457 changed files with 56,836 additions and 70,180 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
54 changes: 53 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,15 @@ jobs:
cargo test -p swc_ecma_minifier --features concurrent
- name: Run cargo test (all features)
if: matrix.settings.crate == 'swc_ecma_parser' || matrix.settings.crate == 'swc_ecma_loader' || matrix.settings.crate == 'swc_ecma_transforms'
if: matrix.settings.crate == 'swc_ecma_parser' || matrix.settings.crate == 'swc_ecma_loader'
run: |
cargo test -p ${{ matrix.settings.crate }} --all-features
- name: Run cargo test (transforms with stacker)
if: matrix.settings.crate == 'swc_ecma_transforms'
run: |
cargo test -p ${{ matrix.settings.crate }} --all-features --features swc_ecma_utils/stacker
- name: Run cargo test (concurrent)
if: runner.os == 'Linux' && matrix.settings.crate != 'swc_ecma_minifier'
shell: bash
Expand Down Expand Up @@ -853,6 +858,53 @@ jobs:
export NODE_OPTIONS="--unhandled-rejections=warn"
(cd crates/swc_node_bundler/tests/integration/react && npm install && npx spack)
miri:
name: Miri
runs-on: ubuntu-latest
if: >-
${{ !contains(github.event.head_commit.message, 'chore: ') }}
strategy:
fail-fast: false
matrix:
crate:
- better_scoped_tls
- string_enum
- swc
- swc_bundler
- swc_ecma_codegen
- swc_ecma_minifier
steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: actions/setup-node@v4
with:
node-version: "18"
cache: "yarn"

- name: Install node dependencies
shell: bash
run: yarn

- name: Print rustup toolchain version
shell: bash
id: rustup-version
run: |
export RUST_TOOLCHAIN="$(cat rust-toolchain | tr -d '\n')"
echo "Rust toolchain: $RUST_TOOLCHAIN"
echo "RUST_TOOLCHAIN=$RUST_TOOLCHAIN" >> "$GITHUB_OUTPUT"
- name: Install
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "${{ steps.rustup-version.outputs.RUST_TOOLCHAIN }}"
components: miri

- run: cargo miri test -p ${{ matrix.crate }} --no-fail-fast
continue-on-error: true
env:
MIRIFLAGS: "-Zmiri-disable-isolation"
done:
needs:
- cargo-fmt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nissuer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: balazsorban44/nissuer@1.7.3
with:
reproduction-comment: ".github/invalid-link.md"
reproduction-hosts: "github.com,play.swc.rs,evanw.github.io,lightningcss.dev,play.rust-lang.org,stackblitz.com"
reproduction-hosts: "github.com,gist.github.com,play.swc.rs,evanw.github.io,lightningcss.dev,play.rust-lang.org,stackblitz.com"
reproduction-invalid-label: "invalid link"
reproduction-issue-labels: "C-bug"
reproduction-link-section: "### Playground link \\(or link to the minimal reproduction\\)(.*)### SWC Info output"
556 changes: 247 additions & 309 deletions CHANGELOG.md

Large diffs are not rendered by default.

Loading

0 comments on commit 66e7224

Please sign in to comment.