Files
democracy-linux/.github/workflows/test.yaml
minco 32a9ba5b78
Some checks failed
Test Agent / test (push) Failing after 1m0s
fix(ci): add itself to ci change condition
2025-08-15 13:44:20 +09:00

47 lines
1010 B
YAML

name: Test Agent
on:
push:
branches:
- main
paths:
- "agent/**"
- ".github/**"
pull_request:
branches:
- main
paths:
- "agent/**"
- ".github/**"
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: agent
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name:
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache Cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose