diff options
author | rustdesk <[email protected]> | 2023-01-07 00:58:51 +0800 |
---|---|---|
committer | rustdesk <[email protected]> | 2023-01-07 00:58:51 +0800 |
commit | cd1a9885db1bd50046e7bd8dc7dba8cbb29aea50 (patch) | |
tree | 46125413c8dc116531c66f7358753fb06ddc8e7d /.github | |
parent | 81d4fb6d6aaef31b7fcb608e04debfa0221eec2f (diff) | |
download | rustdesk-server-cd1a9885db1bd50046e7bd8dc7dba8cbb29aea50.tar.gz rustdesk-server-cd1a9885db1bd50046e7bd8dc7dba8cbb29aea50.zip |
test.yml
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test.yml | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..9f0a89c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,69 @@ +name: test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + - uses: Swatinem/rust-cache@v2 + - uses: actions-rs/cargo@v1 + with: + command: check + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + - uses: Swatinem/rust-cache@v2 + - uses: actions-rs/cargo@v1 + with: + command: test + args: --all + + fmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + components: rustfmt + - uses: Swatinem/rust-cache@v2 + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + + clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + components: clippy + - uses: Swatinem/rust-cache@v2 + - uses: actions-rs/cargo@v1 + with: + command: clippy + args: --all -- -D warnings |