Skip to content

Commit 6ce612d

Browse files
committed
Create nodejs.yml
1 parent fd2c7d9 commit 6ce612d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Node.js CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [10.x]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- name: Setup ElasticSearch
21+
uses: getong/elasticsearch-action@v1
22+
with:
23+
elasticsearch version: '6.8.6'
24+
- run: npm install
25+
- run: PATH=${PATH}:\.\/node_modules\/\.bin/
26+
- run: npm run lint
27+
- run: npm test
28+
# - run: codecov
29+
- run: npm run build
30+
- run: npm run build -- --dist
31+
- run: npm install --prefix integration
32+
env:
33+
CI: true

0 commit comments

Comments
 (0)