Skip to content

Commit

Permalink
ci: update github actions file
Browse files Browse the repository at this point in the history
  • Loading branch information
rszyma committed Nov 16, 2023
1 parent f4ef97a commit 0188c5f
Showing 1 changed file with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,35 @@ jobs:
with:
submodules: recursive

- name: Install dependencies
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
rustup target add wasm32-unknown-unknown
- name: Setup - wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Build with wasm-pack
run: wasm-pack build
- name: Setup - rust target for wasm
run: rustup target add wasm32-unknown-unknown

- name: Test with wasm-pack
run: wasm-pack test --headless --firefox
# - name: Build with wasm-pack
# run: wasm-pack build

- name: Lint and Format
run: |
rustup component add clippy
cargo clippy --target wasm32-unknown-unknown
cargo clippy --target wasm32-unknown-unknown -- -D warnings
cargo fmt --check
# - name: Test with wasm-pack
# run: wasm-pack test --headless --firefox

- name: Setup - install clippy
run: rustup component add clippy

- name: Rust - Lint
run: cargo clippy --target wasm32-unknown-unknown -- -D warnings

- name: Rust - Format
run: cargo fmt --check

- name: Setup - Node.js
uses: actions/setup-node@v3
with:
node-version: '21'
cache: 'yarn'

- name: Setup - yarn
run: yarn

- name: Build extension
run: make package

0 comments on commit 0188c5f

Please sign in to comment.