Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: uniprof tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
id: bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Cache node_modules
uses: actions/cache@v4
with:
path: |
node_modules
key: ${{ runner.os }}-node-cache-${{ hashFiles('package-lock.json') }}
Copy link

@cubic-dev-ai cubic-dev-ai bot Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Cache key uses package-lock.json but the workflow uses Bun which resolves dependencies from bun.lock. This may result in stale cached dependencies when bun.lock changes but package-lock.json doesn't. Consider using bun.lock (or bun.lockb) for consistency with the Bun setup.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/tests.yml, line 34:

<comment>Cache key uses `package-lock.json` but the workflow uses Bun which resolves dependencies from `bun.lock`. This may result in stale cached dependencies when `bun.lock` changes but `package-lock.json` doesn&#39;t. Consider using `bun.lock` (or `bun.lockb`) for consistency with the Bun setup.</comment>

<file context>
@@ -0,0 +1,56 @@
+        with:
+          path: |
+            node_modules
+          key: ${{ runner.os }}-node-cache-${{ hashFiles(&#39;package-lock.json&#39;) }}
+          restore-keys: |
+            ${{ runner.os }}-node-cache-
</file context>
Fix with Cubic

restore-keys: |
${{ runner.os }}-node-cache-

- name: Cache Bun cache
uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
key: ${{ runner.os }}-bun-cache-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-cache-

- name: Install dependencies
run: bun install

- name: Build
run: bun run build

- name: Run tests
env:
CI: true
run: bun run test
Loading
Loading