aob-lemmy-bot/.forgejo/workflows/test.yml

34 lines
1,013 B
YAML
Raw Permalink Normal View History

name: 'Run Tests on Code'
author: 'Neshura'
on:
push:
2023-11-17 08:25:01 +00:00
tags-ignore:
- '**'
branches:
- '**'
jobs:
run-tests:
runs-on: docker
2023-12-19 22:49:16 +00:00
container: forgejo.neshweb.net/ci-docker-images/rust-node:latest
steps:
2023-12-19 21:21:52 +00:00
-
name: Add Clippy
run: rustup component add clippy
2023-12-19 21:49:03 +00:00
-
name: Checking Out Repository Code
uses: https://code.forgejo.org/actions/checkout@v3
-
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