Skip to content

Commit

Permalink
Added concurrently
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcudd committed Sep 18, 2024
1 parent b6a20d1 commit 9bde5a9
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 9 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/build-and-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,5 @@ jobs:
git commit -m "Build: Commit changes after build"
git push
fi
- name: Serve test page
run: npx http-server -p 8080
- name: Run Cypress tests
uses: cypress-io/github-action@v2
with:
start: npx http-server -p 8080
wait-on: http://localhost:8080
config-file: cypress.config.js
run: npm run test
213 changes: 213 additions & 0 deletions package-lock.json

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

14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "index.js",
"scripts": {
"build": "./node_modules/.bin/babel src --out-file index.js",
"test": "cypress run"
"start-server": "http-server -p 8080",
"test": "concurrently -k -s first \"npm run start-server\" \"npm run cypress:run\"",
"cypress:run": "cypress run"
},
"author": "John Cudd",
"license": "MIT",
Expand All @@ -14,6 +16,7 @@
"@babel/core": "^7.17.5",
"@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.16.7",
"concurrently": "^9.0.1",
"cypress": "^13.14.2",
"react": "^18.2.0"
},
Expand All @@ -28,5 +31,12 @@
"type": "git",
"url": "https://github.com/jmcudd/react-jdenticon"
},
"keywords": ["react", "javascript", "identicon", "jdenticon", "avatar", "svg"]
"keywords": [
"react",
"javascript",
"identicon",
"jdenticon",
"avatar",
"svg"
]
}

0 comments on commit 9bde5a9

Please sign in to comment.