Skip to content

Commit

Permalink
Revert "Add npm start to node.js.yml"
Browse files Browse the repository at this point in the history
This reverts commit 60eb571.
The reason is because GitHub Actions got stuck after starting
the app on local server. It didn't progress to test using
cypress.
  • Loading branch information
p2635 committed Jan 25, 2024
1 parent 60eb571 commit 7c3afc7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ name: Node.js CI

on:
push:
branches: ["main"]
branches: [ "main" ]
pull_request:
branches: ["main"]
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -19,13 +20,12 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run build --if-present
- run: npm start
- run: npx cypress run
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npx cypress run

0 comments on commit 7c3afc7

Please sign in to comment.