Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 7048118

Browse files
author
Orta
authored
Merge pull request #261 from bmiddha/github_actions
Added GitHub Actions CI Workflow
2 parents be0024d + 3dbfe3e commit 7048118

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Node CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-node:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Use Node.js 12.x
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: 12.x
15+
- name: Get npm cache directory
16+
id: npm-cache
17+
run: |
18+
echo "::set-output name=dir::$(npm config get cache)"
19+
- uses: actions/cache@v1
20+
with:
21+
path: ${{ steps.npm-cache.outputs.dir }}
22+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
23+
restore-keys: |
24+
${{ runner.os }}-node-
25+
- name: npm install, build, and test
26+
run: |
27+
npm ci
28+
npm run build --if-present
29+
env:
30+
CI: true

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ The full folder structure of this app is explained below:
199199
| Name | Description |
200200
| ------------------------ | --------------------------------------------------------------------------------------------- |
201201
| **.vscode** | Contains VS Code specific settings |
202+
| **.github** | Contains GitHub settings and configurations, incuding the GitHub Actions workflows |
202203
| **dist** | Contains the distributable (or output) from your TypeScript build. This is the code you ship |
203204
| **node_modules** | Contains all your npm dependencies |
204205
| **src** | Contains your source code that will be compiled to the dist dir |

0 commit comments

Comments
 (0)