Skip to content

Commit

Permalink
test containerised app
Browse files Browse the repository at this point in the history
  • Loading branch information
e-oloughlin committed Feb 2, 2021
1 parent 4a7b259 commit da12e8a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@ on: push
jobs:
node-docker:
runs-on: ubuntu-latest
container:
image: node:14.15.4-alpine3.12
services:
app:
image: alialaa17/node-api
ports:
- 3001:3000
mongo:
image: mongo
ports:
- "27017:27017"
steps:
- name: Log node version
run: |
node -v
cat /etc/os-release
- name: Post a user
run: "curl -X POST http://localhost:3001/api/user -H 'Content-Type: application/json' '{ \"username\": \"hello\", \"address\": \"adfadf\" }'"
- name: Get Users
run: curl http://localhost:3001/api/users

0 comments on commit da12e8a

Please sign in to comment.