Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/newman-test.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: Test api
name: Smoke Test

on:
workflow_dispatch:
pull_request:

env:
GH_TOKEN: ${{ github.token }}

jobs:
test:
uses: boxboat-github-practice/reusable-workflows/.github/workflows/simple-tracker-test.yaml@d6ad89cb51d6f1a6982bb441f0523a403549c056
newman:
uses: boxboat-github-practice/reusable-workflows/.github/workflows/simple-tracker-test.yaml@main

3 changes: 2 additions & 1 deletion api-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ app.post('/employees', function(req, res) {
}
res.send(employee)
} else {
res.status(400).send('Missing employee name')
// res.status(400).send('Missing employee name')
res.send()
}
})

Expand Down