mirror of
https://github.com/aljazceru/pubky-core.git
synced 2026-01-22 07:24:19 +01:00
Merge branch 'main' of https://github.com/pubky/pubky
This commit is contained in:
57
.github/workflows/rust.yaml
vendored
57
.github/workflows/rust.yaml
vendored
@@ -21,20 +21,53 @@ jobs:
|
||||
components: rustfmt, clippy
|
||||
override: true
|
||||
|
||||
- name: Check no default features
|
||||
run: cargo check --no-default-features
|
||||
- name: Cache cargo registry
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.cargo/registry
|
||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-registry-
|
||||
- name: Cache cargo index
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.cargo/git
|
||||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-index-
|
||||
- name: Cache cargo build
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: target
|
||||
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-build-
|
||||
- name: Cache Nextest installation
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.cargo/bin/cargo-nextest
|
||||
key: ${{ runner.os }}-cargo-nextest
|
||||
|
||||
- name: Check formatting
|
||||
run: cargo fmt -- --check
|
||||
- name: Install Nextest if not cached
|
||||
run: |
|
||||
if [ ! -f ~/.cargo/bin/cargo-nextest ]; then
|
||||
cargo install cargo-nextest
|
||||
fi
|
||||
|
||||
- name: Lint with Clippy
|
||||
run: cargo clippy --workspace --all-features --bins --tests
|
||||
# - name: Check no default features
|
||||
# run: cargo check --no-default-features
|
||||
|
||||
- name: Build
|
||||
run: cargo build --release --workspace --all-features --verbose
|
||||
# - name: Check formatting
|
||||
# run: cargo fmt -- --check
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --all-features --workspace --verbose
|
||||
# - name: Lint with Clippy
|
||||
# run: cargo clippy --workspace --all-features --bins --tests
|
||||
|
||||
- name: Run docs
|
||||
run: cargo doc --workspace --all-features --no-deps --document-private-items --verbose
|
||||
# - name: Build
|
||||
# run: cargo build --release --workspace --all-features --verbose
|
||||
|
||||
- name: Run tests with Nextest
|
||||
run: cargo nextest run homeserver_in_tokio
|
||||
|
||||
# - name: Run docs
|
||||
# run: cargo doc --workspace --all-features --no-deps --document-private-items --verbose
|
||||
|
||||
Reference in New Issue
Block a user