Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.

ci: add GitHub Actions workflow for automated builds, testing, and se… #14

ci: add GitHub Actions workflow for automated builds, testing, and se…

ci: add GitHub Actions workflow for automated builds, testing, and se… #14

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build --if-present
- name: Test
run: npm test --if-present
security_scan:
name: Security Scan (Trivy)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'table'
exit-code: '0'
severity: 'CRITICAL,HIGH'