minimal-setup #2
@@ -15,6 +15,16 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Debug workspace and files
|
||||
run: |
|
||||
echo "Current directory: $(pwd)"
|
||||
echo "Files in current directory:"
|
||||
ls -la
|
||||
echo "Checking for bun.lock:"
|
||||
find . -name "bun.lock" -type f
|
||||
echo "Hash of bun.lock:"
|
||||
find . -name "bun.lock" -exec sha256sum {} \;
|
||||
|
||||
- name: Cache node_modules
|
||||
id: cache
|
||||
uses: actions/cache@v4
|
||||
@@ -24,9 +34,23 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-bun-
|
||||
|
||||
- name: Debug cache result
|
||||
run: |
|
||||
echo "Cache hit: ${{ steps.cache.outputs.cache-hit }}"
|
||||
echo "Cache key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}"
|
||||
echo "Files after cache restore:"
|
||||
ls -la
|
||||
|
||||
- name: Install Dependencies
|
||||
run: bun i --frozen-lockfile
|
||||
|
||||
- name: Debug after install
|
||||
run: |
|
||||
echo "Files after bun install:"
|
||||
ls -la
|
||||
echo "node_modules exists:"
|
||||
test -d node_modules && echo "YES" || echo "NO"
|
||||
|
||||
type-check:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
@@ -36,6 +60,13 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Debug workspace
|
||||
run: |
|
||||
echo "Current directory: $(pwd)"
|
||||
echo "Files in current directory:"
|
||||
ls -la
|
||||
echo "Cache key would be: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}"
|
||||
|
||||
- name: Cache node_modules
|
||||
id: cache
|
||||
uses: actions/cache@v4
|
||||
@@ -45,8 +76,13 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-bun-
|
||||
|
||||
- name: Debug cache result
|
||||
run: |
|
||||
echo "Cache hit: ${{ steps.cache.outputs.cache-hit }}"
|
||||
echo "Files after cache restore:"
|
||||
ls -la
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Run type checking
|
||||
@@ -71,7 +107,6 @@ jobs:
|
||||
${{ runner.os }}-bun-
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Run linting
|
||||
@@ -96,7 +131,6 @@ jobs:
|
||||
${{ runner.os }}-bun-
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Check formatting
|
||||
@@ -121,7 +155,6 @@ jobs:
|
||||
${{ runner.os }}-bun-
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Build application
|
||||
|
||||
Reference in New Issue
Block a user