Skip to content

fix: target wasm32-wasip1 #36

fix: target wasm32-wasip1

fix: target wasm32-wasip1 #36

Workflow file for this run

name: CI main
on:
pull_request:
push:
branches:
- main
env:
RUST_BACKTRACE: 1
jobs:
test:
name: Cargo test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [stable, nightly]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
target: wasm32-wasip1
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
- name: Run library tests
uses: actions-rs/cargo@v1
with:
command: test
args: --lib
- name: Run integration tests
env:
LOG_LEVEL: off
run: |
cd example
cargo build --target wasm32-wasip1
docker compose up --detach
cargo test --test request-e2e
docker compose down
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --verbose
- name: Verify code format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --target wasm32-wasip1 --release