chore: bump github actions to latest #460
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
on: [push, pull_request] | |
name: Test and Build | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
target: wasm32-unknown-unknown | |
components: rustfmt | |
override: true | |
- name: Install wasm-pack | |
uses: jetli/[email protected] | |
- name: Verify versions | |
run: rustc --version && rustup --version && cargo --version && sqlite3 --version | |
- name: Cache build context | |
id: cache-cargo | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: test-${{ runner.os }}-cargo | |
- name: Check code style | |
run: cargo fmt -- --check | |
- name: Build crates | |
run: cargo build | |
- name: Build prose-sdk-js | |
run: cargo build --package prose-sdk-js --target wasm32-unknown-unknown | |
- name: Build prose-sdk-ffi | |
run: cargo build --package prose-sdk-ffi | |
- name: Build examples | |
run: cargo build --package prose-core-client-cli --package xmpp-client | |
- name: Test code | |
run: cargo test --features test | |
- name: Run core-client integration tests | |
run: cargo test --package prose-core-integration-tests | |
- name: Run store integration tests | |
run: cargo test --package prose-store-integration-tests | |
- name: Run Wasm core-client integration tests | |
run: cargo xtask ci wasm | |
- name: Run Wasm store integration tests | |
run: cargo xtask ci wasm-store |