update dependencies and use github workflow #1
This file contains 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: Test | |
on: | |
push: | |
branches: | |
- "*" | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install rust and run tests | |
run: | | |
rustup update stable --no-self-update | |
rustup default stable | |
cargo test -j`nproc` | |
lint: | |
name: check format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install rust and check format | |
run: | | |
rustup update stable | |
rustup default stable | |
rustup component add rustfmt | |
cargo fmt -- --check |