diff options
| author | Markus Unterwaditzer <markus-honeypot@unterwaditzer.net> | 2021-11-24 20:53:45 +0100 | 
|---|---|---|
| committer | Markus Unterwaditzer <markus-honeypot@unterwaditzer.net> | 2021-11-24 21:04:12 +0100 | 
| commit | 3da2052fa180ce5cac0f128382481b630164b9b4 (patch) | |
| tree | f065f555248f60afeef434d27d92d65a881c8ffe /.github/workflows | |
| parent | 9909fc4580855a58a10eb84f0d143d1b3b3f464a (diff) | |
add basic rust action
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/test.yml | 65 | 
1 files changed, 65 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..05df22f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,65 @@ +on: [push, pull_request] + +name: Continuous integration + +jobs: +  check: +    name: Check +    runs-on: ubuntu-latest +    steps: +      - uses: actions/checkout@v2 +      - uses: actions-rs/toolchain@v1 +        with: +          profile: minimal +          toolchain: stable +          override: true +      - uses: actions-rs/cargo@v1 +        with: +          command: check + +  test: +    name: Test Suite +    runs-on: ubuntu-latest +    steps: +      - uses: actions/checkout@v2 +      - uses: actions-rs/toolchain@v1 +        with: +          profile: minimal +          toolchain: stable +          override: true +      - uses: actions-rs/cargo@v1 +        with: +          command: test +          args: --all-features + +  fmt: +    name: Rustfmt +    runs-on: ubuntu-latest +    steps: +      - uses: actions/checkout@v2 +      - uses: actions-rs/toolchain@v1 +        with: +          profile: minimal +          toolchain: stable +          override: true +      - run: rustup component add rustfmt +      - uses: actions-rs/cargo@v1 +        with: +          command: fmt +          args: --all -- --check + +  clippy: +    name: Clippy +    runs-on: ubuntu-latest +    steps: +      - uses: actions/checkout@v2 +      - uses: actions-rs/toolchain@v1 +        with: +          profile: minimal +          toolchain: stable +          override: true +      - run: rustup component add clippy +      - uses: actions-rs/cargo@v1 +        with: +          command: clippy +          args: -- -D warnings  | 
