diff options
| author | Andreas Grois <soulsource@users.noreply.github.com> | 2023-04-03 18:35:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-03 18:35:50 +0200 |
| commit | ef0b4e6caffaf1881da1c5edc02cc709c5c72fa4 (patch) | |
| tree | ef2591e99b83a74445ac95e0ea40932694cc77d7 | |
| parent | 1fd83c35f815234679ad0c5ac49f1433540df48d (diff) | |
Set up Workflows
| -rw-r--r-- | .github/workflows/rust.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..57c5d46 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,36 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run tests + run: cargo test --verbose + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Clippy + run: cargo clippy + - name: Clippy for Tests + run: cargo clippy --tests + - name: Clippy for Examples + run: cargo clippy --examples |
