diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..575913e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: Build and audit + +on: + pull_request: + branches: main + +jobs: + build-and-audit: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [22.x, 24.x, 26.x] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Build website + run: npm run build + + - name: Run security audit + run: npm audit --production --audit-level=moderate