Enables checks to run in CI #3
Workflow file for this run
This file contains hidden or 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: CI | |
on: | |
pull_request: | |
env: | |
RUSTFLAGS: -Dwarnings | |
jobs: | |
check_and_test: | |
name: It builds and tests pass | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: rustup | |
run: rustup target add wasm32-wasip2 | |
- name: Install cargo-binstall | |
uses: cargo-bins/[email protected] | |
- name: Install cargo-component | |
shell: bash | |
run: cargo binstall cargo-component | |
- name: Install Wasmtime | |
shell: bash | |
run: | | |
curl https://wasmtime.dev/install.sh -sSf | bash | |
source ~/.bashrc | |
- name: check | |
shell: bash | |
run: cargo component check | |
- name: test | |
shell: bash | |
run: cargo component test | |
check_style: | |
name: It follows all style conventions | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: rustup | |
run: rustup target add wasm32-wasip2 | |
- name: clippy | |
run: cargo clippy -- -Dwarnings | |
- name: fmt | |
run: cargo fmt --all -- --check |