Skip to content

Remove (a)sync entries and add asset entry with an example #60

Remove (a)sync entries and add asset entry with an example

Remove (a)sync entries and add asset entry with an example #60

Workflow file for this run

name: CI
on:
push:
branches: [goshujin-sama]
pull_request:
branches: [goshujin-sama]
jobs:
rust_test:
name: Rust test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
# - run: cargo test --all-features
- run: cargo fmt --check
- run: cargo clippy --all-features -- --no-deps -Dwarnings
js_test:
name: JS test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: latest
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Download brotli-wasm for tests
uses: actions/checkout@v3
with:
repository: httptoolkit/brotli-wasm
ref: v2.0.1
path: test/brotli-wasm
- name: Modify brotli-wasm for tests
run: |
test/test.sh preinstall
test/test.sh pretest
- name: Install brotli-wasm dependencies for tests
run: npm install
working-directory: test/brotli-wasm
- name: Build brotli-wasm for tests
run: npm run build
working-directory: test/brotli-wasm
- run: npm run build
- run: npm run test
- name: Check ESM module resolution
run: npx @arethetypeswrong/cli --ignore-rules cjs-resolves-to-esm --pack