Skip to content

ci: update ci + add ensure no std #12

ci: update ci + add ensure no std

ci: update ci + add ensure no std #12

Workflow file for this run

on:
pull_request:
types: [opened, reopened]
branches:
- main
push:
branches:
- main
name: Test
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install toolchain
run: rustup show
- name: Run cargo fmt
run: cargo fmt -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
run: cargo clippy -- -D warnings

Check failure on line 26 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
- name: Run cargo clippy alloc
uses: actions-rs/cargo@v1
run: >
cargo clippy --no-default-features
--features alloc -- -D warnings
- name: Run cargo test
run: cargo test
- name: Run cargo test alloc
run: cargo test --no-default-features --features alloc
no-std-build:
name: Test no_std support
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check wasm compatibility
run: |-
cd ensure_no_std
rustup show
cargo build -r