mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
e5f46a6800
swc: - Ensure that #2281 is fixed. (#2281) wasm: - Fix `baseUrl` and `paths` support. - Apply `hygiene` pass.
43 lines
817 B
YAML
43 lines
817 B
YAML
name: Wasm
|
|
|
|
on: [push, pull_request]
|
|
#on:
|
|
# push:
|
|
# # Ignore commits created by bors
|
|
# branches-ignore:
|
|
# - 'staging'
|
|
# - 'trying'
|
|
# pull_request:
|
|
# branches-ignore:
|
|
# - 'staging'
|
|
# - 'trying'
|
|
|
|
env:
|
|
CI: 1
|
|
CARGO_INCREMENTAL: 0
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
# We explicitly do this to cache properly.
|
|
- name: Install Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
|
|
- name: Install wasm-pack
|
|
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
|
|
- name: Build
|
|
run: |
|
|
(cd wasm && yarn)
|
|
(cd wasm && ./scripts/build.sh)
|
|
|
|
- name: Test
|
|
run: |
|
|
(cd wasm && ./scripts/test.sh)
|