Skip to content

Merge pull request #5308 from wasmerio/release-5.0.4 #1612

Merge pull request #5308 from wasmerio/release-5.0.4

Merge pull request #5308 from wasmerio/release-5.0.4 #1612

# 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