- Added workflow_dispatch to audit.yml, ci-cd.yml, ci.yml, cli-level1-tests.yml, security-scanning.yml, and test.yml - Added push trigger to fix.yml (was workflow_dispatch only) - Enables manual workflow runs from Gitea UI for all CI/CD pipelines
37 lines
647 B
YAML
37 lines
647 B
YAML
name: ci-cd
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: debian
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Debug environment
|
|
run: |
|
|
echo "=== SYSTEM ==="
|
|
hostname
|
|
uname -a
|
|
whoami
|
|
echo "=== NODE ==="
|
|
node -v
|
|
npm -v
|
|
|
|
- name: Install dependencies
|
|
run: npm install --legacy-peer-deps
|
|
|
|
- name: Build
|
|
run: npm run build || echo "no build step"
|
|
|
|
- name: Test
|
|
run: npm test || echo "no tests"
|
|
|
|
- name: Audit (non-blocking)
|
|
run: npm audit || true
|