Skip to content

Allow NWC filters that only have an author or pubkey #63

Allow NWC filters that only have an author or pubkey

Allow NWC filters that only have an author or pubkey #63

Workflow file for this run

name: Tests
on:
pull_request:
jobs:
website:
name: Build WASM binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy
target: wasm32-unknown-unknown
override: true
profile: minimal
- uses: jetli/[email protected]
with:
version: 'latest'
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-${{ runner.os }}-browser-tests-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
cargo-${{ runner.os }}-browser-tests-
cargo-${{ runner.os }}-
- name: Build wasm
run: npm install -g wrangler && wrangler build
rust_tests:
name: Rust Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy, rustfmt
target: wasm32-unknown-unknown
override: true
profile: minimal
- name: Setup trunk
uses: jetli/[email protected]
with:
version: 'latest'
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-${{ runner.os }}-rust-tests-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
cargo-${{ runner.os }}-rust-tests-
cargo-${{ runner.os }}-
- name: Check formatting
working-directory: .
run: cargo fmt --check
- name: Check clippy
working-directory: .
run: cargo clippy