File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 4848 DOCKERHUB_SLUG : arabcoders/watchstate
4949 GHCR_SLUG : ghcr.io/arabcoders/watchstate
5050 BUN_VERSION : latest
51- NODE_VERSION : 20
5251
5352jobs :
5453 validate-build-config :
@@ -122,18 +121,18 @@ jobs:
122121 - name : Run PHP tests
123122 run : composer run test
124123
124+ - uses : actions/cache@v4
125+ with :
126+ path : ~/.bun/install/cache
127+ key : ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
128+ restore-keys : |
129+ ${{ runner.os }}-bun-
130+
125131 - name : Install bun
126132 uses : oven-sh/setup-bun@v2
127133 with :
128134 bun-version : ${{ env.BUN_VERSION }}
129135
130- - name : Install Node.js
131- uses : actions/setup-node@v4
132- with :
133- node-version : ${{ env.NODE_VERSION }}
134- cache : bun
135- cache-dependency-path : " frontend/bun.lock"
136-
137136 - name : Install frontend dependencies
138137 working-directory : frontend
139138 run : bun install --frozen-lockfile --prefer-offline
@@ -142,6 +141,7 @@ jobs:
142141 working-directory : frontend
143142 env :
144143 NODE_ENV : development
144+ BUN_ENV : development
145145 run : bun run prepare:test
146146
147147 - name : Run frontend linter
@@ -156,6 +156,7 @@ jobs:
156156 working-directory : frontend
157157 env :
158158 NODE_ENV : production
159+ BUN_ENV : production
159160 run : bun run generate
160161
161162 - name : Set up Python
You can’t perform that action at this time.
0 commit comments