40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
name: 'Run Tests on Code'
|
|
author: 'Neshura'
|
|
|
|
on:
|
|
push:
|
|
tags-ignore:
|
|
- '**'
|
|
branches:
|
|
- '**'
|
|
jobs:
|
|
run-tests:
|
|
runs-on: docker
|
|
container: rust:latest
|
|
steps:
|
|
-
|
|
name: Installing Node
|
|
run: apt update && apt install -y nodejs
|
|
-
|
|
name: Add Clippy
|
|
run: rustup component add clippy
|
|
-
|
|
name: Checking Out Repository Code
|
|
uses: https://code.forgejo.org/actions/checkout@v3
|
|
-
|
|
name: Change To Rust Root Dir
|
|
run: cd src-tauri/
|
|
-
|
|
name: Set Up Cargo Cache
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
-
|
|
name: Run Clippy
|
|
run: cargo clippy --manifest-path **/Cargo.toml |