Version 3.1.1 #51
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
name: Test | |
on: | |
push: | |
paths-ignore: | |
- '.devcontainer/**' | |
- '.github/**' | |
- '.gitignore' | |
- 'LICENSE' | |
branches: [ "main" ] | |
pull_request: | |
paths-ignore: | |
- 'README.md' | |
- 'LICENSE' | |
- '.devcontainer/**' | |
- '.github/**' | |
- '.gitignore' | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Add Wasm target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Build | |
run: cargo build --verbose && cargo build --target wasm32-unknown-unknown --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Run doctests | |
run: cargo test --doc --verbose | |
- uses: actions/checkout@v1 |