chore(deps): update softprops/action-gh-release digest to 9d7c94c #209
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
name: SWC Compat Test | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
types: ["opened", "reopened", "synchronize"] | |
env: | |
CARGO_INCREMENTAL: 0 | |
RUST_LOG: "debug" | |
DIFF: 0 | |
RUST_MIN_STACK: 4194304 | |
CARGO_TERM_COLOR: always | |
jobs: | |
wasm-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
- run: pnpm build | |
- name: Upload Binary | |
uses: actions/upload-artifact@v4 | |
with: | |
if-no-files-found: error | |
name: wasm | |
path: | | |
target/*/debug/*.wasm | |
test: | |
name: Test with ${{ matrix.swc_package }} | |
runs-on: ubuntu-latest | |
needs: wasm-build | |
strategy: | |
matrix: | |
swc_package: | |
- "@swc/core@1.4.0" | |
- "@swc/core@1.4.1" | |
- "@swc/core@latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".node-version" | |
- uses: pnpm/action-setup@v2 | |
with: | |
run_install: | | |
- args: [--frozen-lockfile, --strict-peer-dependencies] | |
- run: pnpm add -D --ignore-scripts ${{ matrix.swc_package }} | |
- uses: actions/download-artifact@v4 | |
with: | |
name: wasm | |
path: target/ | |
- run: pnpm test |