Skip to content

Commit

Permalink
Merge pull request #41 from Programmer-RD-AI/40-fix-github-actions-wo…
Browse files Browse the repository at this point in the history
…rkflow-for-cypress-tests

Fix GitHub Actions Workflow for Cypress Tests
  • Loading branch information
Programmer-RD-AI authored Aug 8, 2024
2 parents cfae3d6 + 5b383bb commit 2a1a9f2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
# Install npm dependencies, cache them correctly
# and run all Cypress tests

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16' # Use the appropriate Node.js version for your project

- name: Install dependencies
run: npm ci

- name: Start application server
run: npm run dev &
env:
NODE_ENV: development

- name: Cypress run
uses: cypress-io/github-action@v6
with:
start: npm run dev
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"eslint": "^8.28.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.9",
"prettier": "^3.3.3",
"vite": "^4.1.0"
}
Expand Down

0 comments on commit 2a1a9f2

Please sign in to comment.