Skip to content

Commit

Permalink
ci: remove pm2 to fix CLI failure
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicPoullain committed Nov 1, 2022
1 parent 0ee9405 commit 8dd0e9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/daily-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install pm2
run: npm install -g pm2
- name: Install FoalTS CLI
run: npm install -g @foal/cli
- name: Run acceptance tests (Bash)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Use npm version 8.5
run: npm install -g [email protected]
- name: Install global dependencies (pm2, codecov)
run: npm install -g pm2 codecov
- name: Install global dependencies (codecov)
run: npm install -g codecov
- name: Install project dependencies
run: npm install
- name: Install package dependencies and build packages
Expand Down
4 changes: 2 additions & 2 deletions e2e_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ npm run start:e2e
npm run build

# Test the application when it is started
pm2 start build/index.js
node build/index.js &
sleep 1
response=$(
curl http://localhost:3001 \
Expand Down Expand Up @@ -115,7 +115,7 @@ test_rest_api DELETE "http://localhost:3001/products/1" 204
test_rest_api DELETE "http://localhost:3001/products/1" 404
test_rest_api DELETE "http://localhost:3001/products/ab" 400

pm2 delete index
killall `ps | grep node`

# Test the default shell scripts to create users.
foal run create-user
Expand Down

0 comments on commit 8dd0e9d

Please sign in to comment.