2020-06-07 17:31:42 -04:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
2021-04-07 10:13:57 -04:00
|
|
|
test:
|
2020-06-07 17:31:42 -04:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [14.x]
|
|
|
|
mcVersionIndex: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Setup Java JDK
|
2020-12-04 13:55:52 -05:00
|
|
|
uses: actions/setup-java@v1.4.3
|
2020-06-07 17:31:42 -04:00
|
|
|
with:
|
|
|
|
java-version: 1.8
|
|
|
|
java-package: jre
|
|
|
|
- run: npm install
|
|
|
|
- env:
|
|
|
|
CIRCLE_NODE_INDEX: ${{ matrix.mcVersionIndex }}
|
|
|
|
CIRCLE_NODE_TOTAL: 10
|
2020-12-04 13:55:52 -05:00
|
|
|
run: npm test
|
2021-04-07 10:13:57 -04:00
|
|
|
packet-cycle-test:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [14.x]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Setup Java JDK
|
|
|
|
uses: actions/setup-java@v1.4.3
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
|
|
|
java-package: jre
|
|
|
|
- run: npm install && npm run test-non-par
|