Skip to content

Commit

Permalink
fix wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Nov 19, 2023
1 parent eaf388c commit cc0e45c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/test.yml
Expand Up @@ -9,29 +9,21 @@ on:
pull_request:

jobs:
fmt:
name: ✂️ fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup update
- run: rustup component add rustfmt
- run: cargo fmt -- --check

clippy:
name: 📎 clippy
name: 📎 fmt and clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: rustup update
- run: rustup component add clippy
- run: rustup component add clippy rustfmt
- run: cargo fmt -- --check
- run: cargo clippy --all --all-targets --all-features

test:
name: 🧪 Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- run: |
Expand Down Expand Up @@ -75,7 +67,7 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: rustup update

- name: Setup mdBook
Expand Down
2 changes: 1 addition & 1 deletion lib/src/publish.rs
Expand Up @@ -45,7 +45,7 @@ pub fn publish_np(url: &str, np: &str) -> bool {
if r.status() == 201 {
published = true;
} else {
println!("{}", r.text());
println!("Error publishing the Nanopub to server {url}, getting status {}", r.status());
}
}
Err(e) => println!(e),
Expand Down

0 comments on commit cc0e45c

Please sign in to comment.