58c9a58a38
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
name: ci-sdk-wasm
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'wasm/**'
|
|
- 'clients/client-core/**'
|
|
- 'common/**'
|
|
|
|
jobs:
|
|
wasm:
|
|
runs-on: [custom-linux]
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
target: wasm32-unknown-unknown
|
|
override: true
|
|
components: rustfmt, clippy
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.20'
|
|
|
|
- name: Install wasm-pack
|
|
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
|
|
- name: Install wasm-opt
|
|
uses: ./.github/actions/install-wasm-opt
|
|
with:
|
|
version: '116'
|
|
|
|
- name: Install wasm-bindgen-cli
|
|
run: cargo install wasm-bindgen-cli
|
|
|
|
- name: "Build"
|
|
run: make sdk-wasm-build
|
|
|
|
- name: "Test"
|
|
run: make sdk-wasm-test
|
|
|
|
- name: "Lint"
|
|
run: make sdk-wasm-lint
|