Skip to content

Commit

Permalink
Merge pull request #2 from igtm/feature/test
Browse files Browse the repository at this point in the history
add test
  • Loading branch information
igtm committed Dec 30, 2022
2 parents 84e2eb3 + ae7462e commit 53eab7a
Show file tree
Hide file tree
Showing 2 changed files with 255 additions and 205 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yaml
@@ -0,0 +1,36 @@
name: test

on:
push:
branches:
- "*"

jobs:
test:
name: run test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- uses: actions-rs/cargo@v1
with:
command: test
args: --release --all-features

0 comments on commit 53eab7a

Please sign in to comment.