fork/chhoto-url

git clone https://git.julia.blue/fork/chhoto-url

SinTan1729build: Do not repeat tests on main brancha04a851

unicode
803 B38 linesraw
1# SPDX-FileCopyrightText: 2023-2026 Sayantan Santra <sayantan.santra689@gmail.com>
2# SPDX-License-Identifier: MIT
3
4name: Run Tests
5
6on:
7  push:
8    branches:
9      - dev
10    paths:
11      - "backend/**"
12  pull_request:
13  workflow_dispatch:
14
15env:
16  CARGO_TERM_COLOR: always
17
18jobs:
19  test:
20    runs-on: ubuntu-latest
21    defaults:
22      run:
23        working-directory: ./backend
24    steps:
25      - uses: actions/checkout@v6
26      - name: Cache Dependencies
27        uses: actions/cache@v5
28        with:
29          path: |
30            backend/target
31            backend/.cargo
32          key: cargo-${{ runner.os }}-${{ hashFiles('backend/Cargo.lock') }}
33          restore-keys: |
34            cargo-${{ runner.os }}-
35      - name: Build
36        run: cargo build
37      - name: Run tests
38        run: cargo test