Skip to content

Commit 8474d79

Browse files
committed
Simplify CI/CD
1 parent 04ac3ae commit 8474d79

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/run-tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
- name: Execute tests
4444
run: composer test
4545

46+
# NPM part (test whether assets can be compiled)
4647
npm:
4748
runs-on: ubuntu-latest
4849

@@ -57,9 +58,10 @@ jobs:
5758

5859
- name: Cache yarn dependencies
5960
uses: actions/cache@v4
60-
id: yarn-node_modules-cache
61+
id: npm-node_modules-cache
6162
with:
6263
path: node_modules
63-
key: yarn-${{ hashFiles('packages.json') }}-node-20
64+
key: npm-${{ hashFiles('package.json') }}-node-20
6465

65-
- run: yarn && yarn dev
66+
- name: Compile assets
67+
run: npm install && npm run prod

0 commit comments

Comments
 (0)