Skip to content

chore(tasks.toml): enable knip cache #2259

chore(tasks.toml): enable knip cache

chore(tasks.toml): enable knip cache #2259

Workflow file for this run

name: Unit Test
on:
pull_request:
branches:
- main
workflow_call:
workflow_dispatch:
schedule:
- cron: "0 0 * * SUN"
permissions: {}
defaults:
run:
shell: bash
jobs:
test-unit:
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
contents: read # for checkout
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Install mise
uses: jdx/mise-action@5083fe46898c414b2475087cc79da59e7da859e8 # v2.1.11
with:
version: 2025.1.3
cache_save: ${{ github.ref_name == 'main' }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Test
run: mise run test:unit
actions-timeline:
needs:
- test-unit
# skip if the workflow is called from another workflow
if: ${{ !cancelled() && contains(github.workflow_ref, '/unit.yml') }}
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
actions: read
steps:
- name: actions-timeline
# cspell:ignore kesin
uses: Kesin11/actions-timeline@3046833d9aacfd7745c5264b7f3af851c3e2a619 # v2.2.1