Added workflow
This commit is contained in:
31
.gitea/workflows/rust.yml
Normal file
31
.gitea/workflows/rust.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: ${{ false }} # <- This make sure the workflow is skipped without any alert
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install rust toolchain
|
||||
run: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
|
||||
- name: Build
|
||||
run: $HOME/.cargo/bin/cargo build --verbose
|
||||
- name: Run tests
|
||||
run: $HOME/.cargo/bin/cargo test --verbose
|
||||
- name: Clippy
|
||||
run: $HOME/.cargo/bin/cargo clippy
|
||||
- name: Formatting
|
||||
run: $HOME/.cargo/bin/cargo +nightly fmt --check
|
||||
- name: No unqualified imports from orchid_api
|
||||
run: $HOME/.cargo/bin/cargo xtask check-api-refs
|
||||
Reference in New Issue
Block a user