Update rust.yml #11
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: 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: Install browser | |
uses: browser-actions/setup-chrome@v1 | |
- name: Show Chrome version | |
run: chrome --version | |
- name: Set default browser to Chrome | |
run: xdg-mime default google-chrome.desktop 'x-scheme-handler/http' | |
- name: Build | |
if: ${{ false }} | |
run: cargo build --verbose | |
- name: Run tests | |
if: ${{ false }} | |
run: cargo test --verbose | |
- name: Run web tests | |
working-directory: ./mezzenger-tests | |
run: ./build_and_run.sh |