All checks were successful
ITAM Code Check / build-and-config-check (push) Successful in 10s
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
name: ITAM Code Check
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- Dockerizing
|
|
- main
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-config-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Prepare CI env file
|
|
run: |
|
|
cat <<'EOF' > .env
|
|
DB_HOST=127.0.0.1
|
|
DB_PORT=3306
|
|
DB_USER=itam_ci
|
|
DB_PASS=itam_ci_password
|
|
DB_NAME=itam
|
|
NODE_ENV=production
|
|
PORT=3000
|
|
LOG_LEVEL=info
|
|
EOF
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: "npm"
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Frontend TypeScript and Vite build
|
|
run: npm run build
|
|
|
|
- name: Validate test compose
|
|
run: docker compose -f docker-compose.test.yaml config
|
|
|
|
- name: Validate prod compose
|
|
run: docker compose -f docker-compose.prod.yaml config
|