feat(ic-http-certification): add request method enum #482
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: Build and Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
SCCACHE_GHA_ENABLED: 'true' | |
RUSTC_WRAPPER: 'sccache' | |
jobs: | |
build_and_test_rust: | |
name: Build and Test Rust | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Run sccache-cache | |
uses: mozilla-actions/[email protected] | |
- name: Build Cargo crates | |
run: cargo build --release | |
- name: Test Cargo crates | |
run: cargo test --all-features | |
- name: Build Cargo docs | |
run: cargo doc --no-deps | |
- name: Lint Rust | |
run: cargo clippy --all-targets --all-features | |
- name: Check Rust formatting | |
run: cargo fmt --all -- --check | |
build_and_test_js: | |
name: Build and Test JavaScript | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: ./.github/actions/setup-pnpm | |
- uses: ./.github/actions/setup-dfx | |
- name: Run sccache-cache | |
uses: mozilla-actions/[email protected] | |
# Triggers installation of the Rust toolchain | |
# Must be done before wasm-pack is installed | |
- name: Cargo metadata | |
run: cargo metadata --format-version 1 | |
- name: Install wasm-pack | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- name: Generate canister declarations | |
run: dfx generate | |
- name: Build NPM packages | |
run: pnpm build | |
- name: Build canisters | |
run: dfx build --check | |
- name: Test NPM packages | |
run: pnpm test | |
- name: Wasm test | |
run: wasm-pack test --node packages/ic-response-verification --features=js | |
- name: Check Typescript formatting | |
run: pnpm run format:check |