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

39 lines
1.1 KiB
YAML
Raw 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
container: rust:latest
steps:
-
name: Installing Node
2023-12-19 21:43:16 +00:00
uses: actions/setup-node@v4
with:
node-version: 18
2023-12-19 21:21:52 +00:00
-
name: Add Clippy
run: rustup component add clippy
-
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: Checking Out Repository Code
uses: https://code.forgejo.org/actions/checkout@v3
-
name: Run Clippy
run: cargo clippy