api-backend/.forgejo/workflows/test.yml

33 lines
781 B
YAML
Raw Normal View History

2024-08-07 16:26:41 +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:
2024-08-07 19:07:12 +00:00
- name: Add Clippy
2024-08-07 16:26:41 +00:00
run: rustup component add clippy
2024-08-07 19:07:12 +00:00
- name: Checking Out Repository Code
2024-08-07 16:26:41 +00:00
uses: https://code.forgejo.org/actions/checkout@v3
2024-08-07 19:07:12 +00:00
- name: Set Up Cargo Cache
2024-08-07 16:26:41 +00:00
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-08-07 19:07:12 +00:00
- name: Run Clippy
2024-08-07 16:26:41 +00:00
run: cargo clippy