Skip to content

Commit

Permalink
Optimise le temps d'exécution de la CI (#3980)
Browse files Browse the repository at this point in the history
* update: cleanup ci start command

* config: lance l'étape de build plus tôt

* update: met à jour la version de mongo utilisée pour correspondre à la prod

* update: supprime le setup de python dans l'étape d'installation de package node

* chore: remove unit test experimentation
  • Loading branch information
Cugniere authored Sep 15, 2023
1 parent 144b824 commit 5537e9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Cache NPM install files
uses: actions/cache@v3
id: restore-npm-install-packages
Expand All @@ -37,7 +34,7 @@ jobs:
path: node_modules
key: ${{ runner.os }}-cache-node-modules-${{ hashFiles('**/package-lock.json') }}
- name: Check tool versions
run: npm --version && node --version && python3 --version
run: npm --version && node --version
- name: Install dependencies
if: steps.restore-dependencies.outputs.cache-hit != 'true'
run: npm ci --prefer-offline --no-audit
Expand Down Expand Up @@ -116,7 +113,7 @@ jobs:
run: npm run test
build:
name: Build
needs: [install, check_data_file_consistency]
needs: [install]
runs-on: ubuntu-20.04
steps:
- name: Checkout
Expand Down Expand Up @@ -225,7 +222,7 @@ jobs:
timeout-minutes: 15
services:
mongodb:
image: mongo:4.0.27
image: mongo:6.0.8
ports:
- 27017:27017
strategy:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build:server": "tsc -p tsconfig.server.json",
"preview": "vite preview",
"lint": "eslint backend data iframes lib src --ext ts,js,vue --max-warnings 0",
"ci": "npm run stats && cd dist-server && NODE_ENV=production node ./backend/server.js",
"ci": "cd dist-server && NODE_ENV=production node ./backend/server.js",
"cypress": "cypress run",
"cypress:open": "cypress open",
"db": "mongod --dbpath db",
Expand Down

0 comments on commit 5537e9b

Please sign in to comment.