pass CI #20
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: Visualize Yew CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
override: true | |
profile: minimal | |
- name: Install wasm-pack | |
run: cargo install wasm-pack | |
- name: Run tests | |
run: wasm-pack test --firefox --headless | |
publish: | |
needs: [tests] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
override: true | |
profile: minimal | |
- name: Publish to crates.io | |
run: cargo publish --token ${{ secrets.CARGO_TOKEN }} | |
automerge: | |
runs-on: ubuntu-latest | |
needs: [tests, publish] | |
if: | | |
always() && | |
(needs.tests.result == 'success' && needs.publish.result == 'success') | |
steps: | |
- id: automerge | |
name: automerge | |
uses: 'pascalgn/automerge-action@v0.15.5' | |
env: | |
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | |
MERGE_LABELS: '' | |