feature/build #1
@@ -15,6 +15,16 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Cache node_modules
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@@ -24,9 +34,23 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-bun-
|
${{ 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
|
- name: Install Dependencies
|
||||||
run: bun i --frozen-lockfile
|
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:
|
type-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
@@ -36,6 +60,13 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Cache node_modules
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@@ -45,8 +76,13 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-bun-
|
${{ 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
|
- name: Install dependencies
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Run type checking
|
- name: Run type checking
|
||||||
@@ -71,7 +107,6 @@ jobs:
|
|||||||
${{ runner.os }}-bun-
|
${{ runner.os }}-bun-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Run linting
|
- name: Run linting
|
||||||
@@ -96,7 +131,6 @@ jobs:
|
|||||||
${{ runner.os }}-bun-
|
${{ runner.os }}-bun-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
@@ -121,7 +155,6 @@ jobs:
|
|||||||
${{ runner.os }}-bun-
|
${{ runner.os }}-bun-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build application
|
- name: Build application
|
||||||
|
|||||||
Reference in New Issue
Block a user