mirror of
https://github.com/tlsnotary/tlsn-utils.git
synced 2026-01-08 04:13:59 -05:00
Run Web-spawn tests in ci (#53)
This commit is contained in:
32
.github/workflows/rust.yml
vendored
32
.github/workflows/rust.yml
vendored
@@ -4,7 +4,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [dev]
|
branches: [dev]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [dev]
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
@@ -26,7 +25,7 @@ jobs:
|
|||||||
components: clippy
|
components: clippy
|
||||||
|
|
||||||
- name: Use caching
|
- name: Use caching
|
||||||
uses: Swatinem/rust-cache@v2.7.3
|
uses: Swatinem/rust-cache@v2.7.7
|
||||||
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
run: cargo clippy --all-features --all-targets -- -D warnings
|
run: cargo clippy --all-features --all-targets -- -D warnings
|
||||||
@@ -50,6 +49,31 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- uses: Swatinem/rust-cache@v2.7.3
|
- uses: Swatinem/rust-cache@v2.7.7
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: cargo fmt --check --all
|
run: cargo fmt --check --all
|
||||||
|
|
||||||
|
wasm:
|
||||||
|
name: Build and Test web-spawn (wasm)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install nightly rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
targets: wasm32-unknown-unknown,x86_64-unknown-linux-gnu
|
||||||
|
toolchain: nightly
|
||||||
|
components: rust-src
|
||||||
|
|
||||||
|
- name: Install wasm-pack
|
||||||
|
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||||
|
|
||||||
|
- name: Use caching
|
||||||
|
uses: Swatinem/rust-cache@v2.7.7
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
cd web-spawn
|
||||||
|
./run_tests.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user