This repository has been archived on 2024-08-06. You can view files and clone it, but cannot push or open issues or pull requests.
comicinfo-editor-v2/.forgejo/workflows/test.yml

37 lines
1.1 KiB
YAML
Raw Normal View History

2023-11-17 11:37:31 +00:00
name: 'Run Tests on Code'
author: 'Neshura'
on:
push:
tags-ignore:
- '**'
branches:
- '**'
jobs:
run-tests:
runs-on: docker
2023-12-19 23:13:50 +00:00
container: forgejo.neshweb.net/ci-docker-images/rust-tauri:latest
2023-11-17 11:37:31 +00:00
steps:
2023-12-19 22:14:43 +00:00
-
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
2023-12-19 22:20:02 +00:00
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') }}
2023-12-19 22:14:43 +00:00
-
name: Run Clippy
2023-12-19 22:26:11 +00:00
run: cargo clippy --manifest-path **/Cargo.toml