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
Neshura 42978587e3
Some checks failed
Run Tests on Code / run-tests (push) Successful in 1m25s
Build and Release Binary File / run-tests (push) Failing after 1m13s
Build and Release Binary File / upload-release (push) Has been skipped
Build and Release Binary File / build-linux (push) Has been skipped
Use rust-tauri docker image
2023-12-20 00:13:50 +01:00

37 lines
1.1 KiB
YAML

name: 'Run Tests on Code'
author: 'Neshura'
on:
push:
tags-ignore:
- '**'
branches:
- '**'
jobs:
run-tests:
runs-on: docker
container: forgejo.neshweb.net/ci-docker-images/rust-tauri:latest
steps:
-
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