Compare commits
13 Commits
1d3d606bd6
...
test-ci
| Author | SHA1 | Date | |
|---|---|---|---|
| 88a9b70d53 | |||
| 550882b803 | |||
| be2f359ab6 | |||
| e8fa5f8bc6 | |||
| 68e2823d64 | |||
| e977bd83bd | |||
| 7fe6d0db4b | |||
| ccd3e38346 | |||
| 1cbf066658 | |||
| b732944f7a | |||
| 9044560833 | |||
|
|
e2c7165c8c | ||
|
|
4bfa21d4b3 |
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -5,20 +5,30 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- develop
|
- develop
|
||||||
|
- test-ci
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
- uses: actions/setup-node@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: npm test -- --runInBand
|
run: npm test -- --runInBand
|
||||||
|
|
||||||
- name: Run e2e tests
|
- name: Run e2e tests
|
||||||
run: npm run test:e2e -- --runInBand
|
run: npm run test:e2e -- --runInBand
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Configuration de la base de données
|
# Configuration de la base de données
|
||||||
DATABASE_URL="postgresql://postgres:password@localhost:5432/inventory_db"
|
DATABASE_URL="postgresql://postgres:password@localhost:5432/inventory_db"
|
||||||
|
|
||||||
# Configuration du serveur
|
# Configuration du serveurte
|
||||||
PORT=3000
|
PORT=3000
|
||||||
NODE_ENV=development
|
NODE_ENV=development
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user