Skip to content

Commit f5b5aa3

Browse files
committed
Issue #97: Create workflow file that builds the JS/CSS assets
Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
1 parent dfc3ee1 commit f5b5aa3

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/build-assets.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build Assets
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
name: Build assets (Node ${{ matrix.node-version }})
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: ["20", "22", "24", "26"]
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v6
17+
18+
- name: Set up Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v6
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
23+
- name: Install dependencies
24+
run: npm install
25+
26+
- name: Build assets
27+
run: npm run build

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Documentation is available at: https://docs.dotkernel.org/light-documentation/
2222
[![Continuous Integration](https://github.com/dotkernel/light/actions/workflows/continuous-integration.yml/badge.svg?branch=1.0)](https://github.com/dotkernel/light/actions/workflows/continuous-integration.yml)
2323
[![codecov](https://codecov.io/gh/dotkernel/light/graph/badge.svg?token=UpVJ5ELvfZ)](https://codecov.io/gh/dotkernel/light)
2424
[![Qodana](https://github.com/dotkernel/light/actions/workflows/qodana_code_quality.yml/badge.svg)](https://github.com/dotkernel/light/actions/workflows/qodana_code_quality.yml)
25+
[![Assets](https://github.com/dotkernel/light/actions/workflows/build-assets.yml/badge.svg)](https://github.com/dotkernel/light/actions/workflows/build-assets.yml)
2526

2627
[![PHPStan](https://github.com/dotkernel/light/actions/workflows/static-analysis.yml/badge.svg?branch=1.0)](https://github.com/dotkernel/light/actions/workflows/static-analysis.yml)
2728
![PHPstan Level](https://img.shields.io/badge/PHPStan-level%208-brightgreen)

0 commit comments

Comments
 (0)