cloudflare-dns-updater/.forgejo/workflows/test.yml

34 lines
1,013 B
YAML
Raw Normal View History

2023-12-12 06:53:44 +00:00
name: 'Run Tests on Code'
author: 'Neshura'
on:
push:
tags-ignore:
- '**'
branches:
- '**'
jobs:
run-tests:
runs-on: docker
2023-12-25 14:10:42 +00:00
container: forgejo.neshweb.net/ci-docker-images/rust-node:latest
2023-12-12 06:53:44 +00:00
steps:
-
2023-12-25 14:10:42 +00:00
name: Add Clippy
run: rustup component add clippy
-
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