mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-02-21 23:27:54 +01:00
4
.github/workflows/ci-js.yml
vendored
4
.github/workflows/ci-js.yml
vendored
@@ -1,10 +1,10 @@
|
||||
on: [push, pull_request]
|
||||
on: [push]
|
||||
|
||||
name: CI (JS)
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Check
|
||||
name: Lint/Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
41
.github/workflows/ci-rust.yml
vendored
41
.github/workflows/ci-rust.yml
vendored
@@ -2,6 +2,7 @@ on:
|
||||
push:
|
||||
paths:
|
||||
- src-tauri/**
|
||||
- .github/workflows/**
|
||||
|
||||
name: CI (Rust)
|
||||
|
||||
@@ -11,7 +12,7 @@ defaults:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
name: Check/Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -21,10 +22,42 @@ jobs:
|
||||
- run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libwebkit2gtk-4.1-dev
|
||||
- uses: actions-rs/toolchain@v1
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
toolchain: ${{ inputs.rust-version }}
|
||||
override: true
|
||||
- run: cargo check
|
||||
components: rustfmt, clippy
|
||||
- name: Set up cargo cache
|
||||
uses: actions/cache@v3
|
||||
continue-on-error: false
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: ${{ runner.os }}-cargo-
|
||||
- name: Lint
|
||||
run: |
|
||||
cargo fmt --all -- --check
|
||||
cargo clippy -- -D warnings
|
||||
- name: Install cargo check tools
|
||||
run: |
|
||||
cargo install --locked cargo-deny || true
|
||||
cargo install --locked cargo-outdated || true
|
||||
cargo install --locked cargo-udeps || true
|
||||
cargo install --locked cargo-audit || true
|
||||
cargo install --locked cargo-pants || true
|
||||
- name: Check
|
||||
run: |
|
||||
cargo deny check
|
||||
cargo outdated --exit-code 1
|
||||
cargo udeps
|
||||
rm -rf ~/.cargo/advisory-db
|
||||
cargo audit
|
||||
cargo pants
|
||||
- run: cargo test --all
|
||||
|
||||
Reference in New Issue
Block a user