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

37 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
run: apt update && apt install -y nodejs
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