mirror of
https://github.com/SinTan1729/chhoto-url.git
synced 2025-12-06 05:24:25 -08:00
36 lines
709 B
YAML
36 lines
709 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: ["*"]
|
|
paths: ["actix/**"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
paths: ["actix/**"]
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./actix
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Cache Dependencies
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
actix/target
|
|
actix/.cargo
|
|
key: cargo-${{ runner.os }}-${{ hashFiles('actix/Cargo.lock') }}
|
|
restore-keys: |
|
|
cargo-${{ runner.os }}-
|
|
- name: Build
|
|
run: cargo build
|
|
- name: Run tests
|
|
run: cargo test
|