Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiteAFancyEmerald committed Jul 8, 2024
1 parent db70bf0 commit dd1aeba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ jobs:
node-version: '20.8.0'

- name: Install dependencies
run: npm install
run: npm install

- name: Build project
run: npm run build

- name: Run tests
run: npm test
- name: Start server and run tests
run: |
npm run start-test-server
sleep 10 # Wait for the server to start
npm run test-400
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"main": "backend.js",
"scripts": {
"start": "node backend.js",
"build": "echo 'Building project...' && node backend.js && exit 0",
"test": "echo 'Testing project...' && exit 1"
"build": "echo 'Building project...' && exit 0",
"test": "echo 'Running tests...' && exit 0",
"start-test-server": "node backend.js &",
"test-400": "curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/ | grep 400"
},
"keywords": [
"proxy",
Expand Down

0 comments on commit dd1aeba

Please sign in to comment.