Skip to content

Commit c0b4a8d

Browse files
authored
Merge pull request #1492 from fabiovincenzi/ci/optimize-ci
ci: optimize CI workflow
2 parents 6900045 + 330a12a commit c0b4a8d

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
mongodb-version: ${{ matrix.mongodb-version }}
4444

4545
- name: Install dependencies
46-
run: npm ci
46+
run: npm ci --no-fund
4747

4848
# for now only check the types of the server
4949
# tsconfig isn't quite set up right to respect what vite accepts
@@ -75,22 +75,11 @@ jobs:
7575
- name: Build frontend
7676
run: npm run build-ui
7777

78-
- name: Save build folder
79-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
80-
with:
81-
name: build-ubuntu-node-${{ matrix.node-version }}-mongo-${{ matrix.mongodb-version }}
82-
if-no-files-found: error
83-
path: build
84-
85-
- name: Download the build folders
86-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
87-
with:
88-
name: build-ubuntu-node-${{ matrix.node-version }}-mongo-${{ matrix.mongodb-version }}
89-
path: build
90-
9178
- name: Run cypress test
9279
uses: cypress-io/github-action@4c06c48f3ffea349b7189aa06dfcda47a9fa7b92 # v7.1.8
9380
with:
81+
# skip the action's internal npm ci — dependencies are already installed above
82+
install: false
9483
start: npm start &
9584
wait-on: 'http://localhost:3000'
9685
wait-on-timeout: 120
@@ -121,7 +110,7 @@ jobs:
121110
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
122111
123112
- name: Install dependencies
124-
run: npm ci
113+
run: npm ci --no-fund
125114

126115
- name: Check Types (Server)
127116
run: npm run check-types:server

0 commit comments

Comments
 (0)