Skip to content

Fix clippy workflow cache cleanup #2

Fix clippy workflow cache cleanup

Fix clippy workflow cache cleanup #2

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: tests-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 60
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Capture runner Node path
id: runner-node
run: |
echo "dir=$(dirname "$(command -v node)")" >> "$GITHUB_OUTPUT"
- uses: pnpm/action-setup@v4
with:
version: 10.28.0
- name: Restore runner Node path
run: echo "${{ steps.runner-node.outputs.dir }}" >> "$GITHUB_PATH"
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install workspace dependencies
run: pnpm install --frozen-lockfile
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
apps/discourse-listener -> target
apps/telegram-listener -> target
apps/near-balance-listener -> target
- name: Run workspace tests
run: pnpm test
- name: Validate compose stack
run: docker compose config