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.
jnc-calibre-web-importer/.forgejo/workflows/test.yml

34 lines
803 B
YAML
Raw Normal View History

2024-01-11 10:31:38 +00:00
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-node:latest
steps:
- name: Add Clippy
run: rustup component add clippy
2024-01-13 15:24:48 +00:00
2024-01-11 10:31:38 +00:00
- name: Checking Out Repository Code
uses: https://code.forgejo.org/actions/checkout@v3
2024-01-13 15:24:48 +00:00
2024-01-11 10:31:38 +00:00
- 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') }}
2024-01-13 15:24:48 +00:00
2024-01-11 10:31:38 +00:00
- name: Run Clippy
run: cargo clippy