Skip to content

Commit

Permalink
sanitize yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavsinghal87 committed Feb 24, 2024
1 parent 0d3b587 commit 437a094
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/test-api-inside-ghrunnerVM.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Checkout and run nodejs app inside runner(VM)
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get Code
uses: actions/checkout@v4
- name: Folder content
working-directory: ./nodejs-docker
run: ls
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: deps-node-modules-${{ hashFiles('./nodejs-docker/package-lock.json') }}
- name: Install dependencies
working-directory: ./nodejs-docker
run: npm ci
- name: Run server
working-directory: ./nodejs-docker
run: |
npm start
- name: Get users
run: curl http://localhost:3000/users
build:
runs-on: ubuntu-latest
steps:
- name: Get Code
uses: actions/checkout@v4
- name: Folder content
working-directory: ./nodejs-docker
run: ls
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: deps-node-modules-${{ hashFiles('./nodejs-docker/package-lock.json') }}
- name: Install dependencies
working-directory: ./nodejs-docker
run: npm ci
- name: Run server
working-directory: ./nodejs-docker
run: |
npm start
- name: Get users
run: curl http://localhost:3000/users

0 comments on commit 437a094

Please sign in to comment.