diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f28e3b..af70e86 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,20 +5,30 @@ on: branches: - main - develop + - test-ci pull_request: jobs: build: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Setup Node.js + uses: actions/setup-node@v4 with: node-version: 20 cache: 'npm' + - name: Install dependencies run: npm ci + - name: Run unit tests run: npm test -- --runInBand + - name: Run e2e tests run: npm run test:e2e -- --runInBand diff --git a/env.example b/env.example index 5e1cddc..1d62155 100644 --- a/env.example +++ b/env.example @@ -1,7 +1,7 @@ # Configuration de la base de données DATABASE_URL="postgresql://postgres:password@localhost:5432/inventory_db" -# Configuration du serveur +# Configuration du serveurte PORT=3000 NODE_ENV=development