fix: Properly assign async
keyword only to wrapped functions that had async
keyword on original
#173
This file contains hidden or 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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
# Run for all pull requests, regardless of target branch | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_VERSION: 1.87.0 | |
jobs: | |
test: | |
name: Build, Lint & Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Rust ${{ env.RUST_VERSION }} | |
run: rustup toolchain install ${{ env.RUST_VERSION }} --component clippy --component rustfmt && rustup default ${{ env.RUST_VERSION }} | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: 'package.json' | |
- name: Build | |
run: cargo build --all-features | |
- name: Run tests | |
run: cargo test --all-features | |
- name: Run clippy | |
run: cargo clippy --all-features -- -D warnings | |
- name: Run fmt | |
run: cargo fmt --all -- --check | |
- name: Build and Test wasm | |
run: npm install && npm run build && npm test | |
# This check is currently failing even after updating the license file. | |
# - name: Install license tool | |
# run: cargo install dd-rust-license-tool | |
# - name: Run license tool | |
# run: dd-rust-license-tool check |