Skip to content

Update rust.yml

Update rust.yml #6

Workflow file for this run

name: build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: wasm32-unknown-unknown
- name: Install wasm-bindgen-cli
uses: jetli/wasm-bindgen-action@v0.2.0
with:
version: 'latest'
- name: Install wasm-pack
uses: jetli/wasm-pack-action@v0.4.0
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run web tests
working-directory: ./mezzenger-tests
run: ./build_and_run.sh