Skip to content

Commit 2cbd765

Browse files
committed
Add build actions for branches
1 parent f528d87 commit 2cbd765

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/ci-build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
- "feature/**"
9+
pull_request:
10+
branches:
11+
- main
12+
- develop
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
# Setup required tools
21+
- name: Setup Node.js environment
22+
uses: actions/[email protected]
23+
with:
24+
node-version: 20.x
25+
26+
- name: Setup PHP Action
27+
uses: shivammathur/[email protected]
28+
with:
29+
php-version: "8.4"
30+
31+
# Node stuff
32+
- name: Install pnpm
33+
run: npm install -g pnpm
34+
35+
- name: Install node dependencies
36+
run: pnpm install --prod
37+
38+
- name: Build assets
39+
run: pnpm run build
40+
41+
- name: Install PHP dependencies
42+
run: composer install --no-dev
43+
44+
- name: Verify build output
45+
run: |
46+
echo "Build completed successfully!"
47+
ls -la assets/

0 commit comments

Comments
 (0)