Convert JavaScript Module
s from a JsValue
#4
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
# Dedicated workflow just for the wasmer-config crate | |
name: wasmer-config | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
# Automatically cancel previous workflow runs when a new commit is pushed. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
DEFAULT_CRATE_NAME: wasmer_toml | |
jobs: | |
check: | |
name: Compile and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Setup Rust | |
uses: dsherret/rust-toolchain-file@v1 | |
- name: Install Nextest | |
uses: taiki-e/install-action@nextest | |
- name: Type Checking | |
run: | | |
cd lib/config && cargo check --verbose --locked | |
- name: Build | |
run: | | |
cd lib/config && cargo build --verbose --locked | |
- name: Test | |
run: | | |
cd lib/config && cargo nextest run --verbose --locked | |
lints: | |
name: Linting and Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Setup Rust | |
uses: dsherret/rust-toolchain-file@v1 | |
- name: Check Formatting | |
run: | | |
cd lib/config && cargo fmt --verbose --check | |
- name: Clippy | |
run: | | |
cd lib/config && cargo clippy --verbose |