Skip to content

Refactor config file handling in InitCommand #29

Refactor config file handling in InitCommand

Refactor config file handling in InitCommand #29

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
build-and-test:
name: Build & Test
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: git-ai/package-lock.json
- name: Install dependencies
run: npm ci
working-directory: git-ai
- name: Lint
run: npm run lint --if-present
working-directory: git-ai
- name: Build
run: npm run build --if-present
working-directory: git-ai
- name: Run tests
run: npm test --if-present
working-directory: git-ai