Use the same urls for debug and release (#230) #1340
Workflow file for this run
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: Rust tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "master" | |
- "rc" | |
- "hotfix-rc" | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
ci-pass: | |
name: CI is green | |
runs-on: ubuntu-latest | |
needs: | |
- test | |
- wasm | |
steps: | |
- run: exit 0 | |
test: | |
name: ${{ matrix.os }} / ${{matrix.target || 'default' }} | |
runs-on: ${{ matrix.os || 'ubuntu-latest' }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- name: Install rust | |
uses: dtolnay/rust-toolchain@5cb429dd810e16ff67df78472fa81cf760f4d1c0 # stable | |
with: | |
toolchain: stable | |
- name: Cache cargo registry | |
uses: Swatinem/rust-cache@e207df5d269b42b69c8bc5101da26f7d31feddb4 # v2.6.2 | |
- name: Test | |
run: cargo test --all-features | |
wasm: | |
name: WASM | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- name: Install rust | |
uses: dtolnay/rust-toolchain@5cb429dd810e16ff67df78472fa81cf760f4d1c0 # stable | |
with: | |
toolchain: stable | |
targets: wasm32-unknown-unknown | |
- name: Cache cargo registry | |
uses: Swatinem/rust-cache@e207df5d269b42b69c8bc5101da26f7d31feddb4 # v2.6.2 | |
- name: Check | |
run: cargo check -p bitwarden-wasm --target wasm32-unknown-unknown | |
- name: Install wasm-pack | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- name: Wasm-pack test firefox | |
run: wasm-pack test --headless --firefox crates/bitwarden-wasm | |
- name: Wasm-pack test chrome | |
run: wasm-pack test --headless --chrome crates/bitwarden-wasm |