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 CLIENT_ID=itam-ci-client-id ISSUER=https://sso.hmac.kr/oidc PROD_REDIRECT_URI=http://127.0.0.1:9090/callback PROD_JWKS_URI=http://127.0.0.1:9090/.well-known/jwks.json 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