diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 31000a2..69896d3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,21 +2,25 @@ name: Rust on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] env: CARGO_TERM_COLOR: always jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - uses: actions/checkout@v3 + - name: Setup + run: | + cargo install wasm-pack + sudo apt update + sudo apt install nodejs + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose