Skip to content

Commit 23d0cbf

Browse files
Merge pull request apache#481 from purplecabbage/gh-actions
added github action workflow to run tests
2 parents f3b3b50 + a846b7c commit 23d0cbf

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/ci.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: Node CI
19+
20+
on: [push, pull_request]
21+
22+
jobs:
23+
test:
24+
name: NodeJS ${{ matrix.node-version }} on ${{ matrix.os }}
25+
26+
runs-on: ${{ matrix.os }}
27+
28+
strategy:
29+
matrix:
30+
node-version: [10.x, 12.x, 14.x, 16.x]
31+
os: [ubuntu-latest, windows-latest, macos-latest]
32+
33+
steps:
34+
- uses: actions/checkout@v2
35+
36+
- name: Use Node.js ${{ matrix.node-version }}
37+
uses: actions/setup-node@v1
38+
with:
39+
node-version: ${{ matrix.node-version }}
40+
41+
- name: set up JDK 1.8
42+
uses: actions/setup-java@v1
43+
with:
44+
java-version: 1.8
45+
46+
- name: Environment Information
47+
run: |
48+
node --version
49+
npm --version
50+
gradle --version
51+
52+
- name: npm install and test
53+
run: |
54+
npm i
55+
npm t
56+
env:
57+
CI: true
58+
59+
- uses: codecov/codecov-action@v1
60+
with:
61+
fail_ci_if_error: true

0 commit comments

Comments
 (0)