Skip to content

Commit d22012e

Browse files
committed
git hub actions
1 parent 874a54b commit d22012e

File tree

4 files changed

+56
-20
lines changed

4 files changed

+56
-20
lines changed

.gitattributes

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# These files will be normalized on commit (CRLF converted to LF) - asterisk is a wildcard
2+
* text eol=lf
3+
4+
# These files will NOT be normalized
5+
*.png -text
6+
*.gif -text
7+
*.jpg -text
8+
*.jpeg -text
9+
*.ico -text

.github/workflows/master.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: master
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
unit-test:
8+
name: Unit Test
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
nodeVersion: [ 16, 18, 20 ]
13+
jdkVersion: [ openjdk9, openjdk10, openjdk11, openjdk21 ]
14+
steps:
15+
- name: Checkout source code
16+
uses: actions/checkout@v3
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{ matrix.nodeVersion }}
20+
- name: npm ci
21+
run: npm ci
22+
- name: Unit test
23+
run: npm test

.github/workflows/pull-requests.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Pull Requests
2+
on:
3+
pull_request:
4+
types: [opened, edited, reopened, synchronize]
5+
branches:
6+
- master
7+
jobs:
8+
unit-test:
9+
name: Unit Test
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
nodeVersion: [ 16, 18, 20 ]
14+
jdkVersion: [ openjdk9, openjdk10, openjdk11, openjdk21 ]
15+
steps:
16+
- name: Checkout source code
17+
uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: ${{ matrix.nodeVersion }}
21+
- name: npm ci
22+
run: npm ci
23+
- name: Unit test
24+
run: npm test

.travis.yml

-20
This file was deleted.

0 commit comments

Comments
 (0)