Skip to content

Commit

Permalink
upd CI pipeline
Browse files Browse the repository at this point in the history
upd CI pipeline - cargo clippy

upd CI pipeline - cargo clippy

remove cargo clippy check

js dir wasm checks

js dir wasm checks

js dir wasm build and js tests

js dir wasm build and js tests

js dir wasm build and js tests

js dir wasm build and js tests

js dir wasm build and js tests

js dir wasm build and js tests

js dir wasm build and js tests

js dir wasm build and js tests

js dir wasm build and js tests

js dir wasm build and js tests
  • Loading branch information
zees-dev committed Feb 12, 2024
1 parent 348e064 commit b086602
Showing 1 changed file with 44 additions and 25 deletions.
69 changes: 44 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
strategy:
fail-fast: false
matrix:
rust: ["stable", "nightly", "1.69"]
rust: ["stable", "1.73"]
flags: ["--all-features"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
Expand All @@ -33,43 +33,62 @@ jobs:
- name: test
run: cargo test ${{ matrix.flags }}

wasm:
js-wasm-build-test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
with:
path: 'js'
- uses: dtolnay/rust-toolchain@nightly
- uses: actions/checkout@v4
- name: check files
run: ls -la
working-directory: js
- uses: dtolnay/[email protected]
with:
toolchain: nightly-x86_64-unknown-linux-gnu
target: wasm32-unknown-unknown
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: cargo hack
run: |
cargo hack check --workspace --target wasm32-unknown-unknown
clippy:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@clippy
- uses: Swatinem/rust-cache@v2
- name: cargo check wasm in js directory
run: cd ./js && cargo check --target wasm32-unknown-unknown
- name: Install Node.js LTS
uses: actions/setup-node@v4
with:
cache-on-failure: true
- run: cargo clippy --workspace --all-targets --all-features
env:
RUSTFLAGS: -Dwarnings
node-version: 'lts/*'
cache: 'yarn'
cache-dependency-path: js/yarn.lock
- name: Install JS deps
run: yarn install --frozen-lockfile
working-directory: js
- name: Install wasm-pack
run: yarn global add wasm-pack
- name: Build JS wasm library using wasm-pack
run: yarn build
working-directory: js
- name: Test JS wasm library
run: yarn test
working-directory: js

# clippy:
# runs-on: ubuntu-latest
# timeout-minutes: 30
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/[email protected]
# with:
# components: clippy
# - uses: Swatinem/rust-cache@v2
# with:
# cache-on-failure: true
# - run: cargo clippy --workspace --all-targets --all-features
# env:
# RUSTFLAGS: -Dwarnings

fmt:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.73
with:
components: rustfmt
- run: cargo fmt --all --check

0 comments on commit b086602

Please sign in to comment.