diff --git a/.github/workflows/build-assets.yml b/.github/workflows/build-assets.yml new file mode 100644 index 0000000..4033a3e --- /dev/null +++ b/.github/workflows/build-assets.yml @@ -0,0 +1,33 @@ +name: Build Assets + +on: push + +permissions: + contents: read + +jobs: + build: + name: Build assets (Node ${{ matrix.node-version }}) + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: ["20", "22", "24", "26"] + + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v6 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm install + + - name: Build assets + run: npm run prod + + - name: Audit dependencies + run: npm audit --audit-level=critical diff --git a/README.md b/README.md index bb808c2..3c8a1f4 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ Documentation is available at: https://docs.dotkernel.org/admin-documentation/ [![codecov](https://codecov.io/gh/dotkernel/admin/graph/badge.svg?token=BQS43UWAM4)](https://codecov.io/gh/dotkernel/admin) [![Qodana](https://github.com/dotkernel/admin/actions/workflows/qodana_code_quality.yml/badge.svg?branch=7.0)](https://github.com/dotkernel/admin/actions/workflows/qodana_code_quality.yml) [![PHPStan](https://github.com/dotkernel/admin/actions/workflows/static-analysis.yml/badge.svg?branch=7.0)](https://github.com/dotkernel/admin/actions/workflows/static-analysis.yml) +[![Build Assets](https://github.com/dotkernel/admin/actions/workflows/build-assets.yml/badge.svg?branch=7.0)](https://github.com/dotkernel/admin/actions/workflows/build-assets.yml) ## Getting Started