Skip to content

Commit a6748d6

Browse files
committed
Create nodejs.yml
1 parent fd2c7d9 commit a6748d6

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
- uses: getong/elasticsearch-action@v1
17+
with:
18+
elasticsearch version: '6.8.6'
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: npm install
24+
- run: PATH=${PATH}:\.\/node_modules\/\.bin/
25+
- run: npm run lint
26+
- run: npm test
27+
# - run: codecov
28+
- run: npm run build
29+
- run: npm run build -- --dist
30+
- run: npm install --prefix integration
31+
env:
32+
CI: true

0 commit comments

Comments
 (0)