-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d3b587
commit 437a094
Showing
1 changed file
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |