2020-06-07 17:31:42 -04:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-06-12 22:54:16 -04:00
|
|
|
branches:
|
|
|
|
- master
|
2020-06-07 17:31:42 -04:00
|
|
|
pull_request:
|
2021-06-12 22:54:16 -04:00
|
|
|
branches:
|
|
|
|
- master
|
2020-06-07 17:31:42 -04:00
|
|
|
|
|
|
|
jobs:
|
2021-04-07 10:13:57 -04:00
|
|
|
test:
|
2020-06-07 17:31:42 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-06-16 18:05:04 -04:00
|
|
|
mcVersion: ['1.7', '1.8', '1.9', '1.10', '1.11.2', '1.12.2', '1.13.2', '1.14.4', '1.15.2', '1.16.5', '1.17']
|
2020-06-07 17:31:42 -04:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-06-12 22:54:16 -04:00
|
|
|
- name: Use Node.js 14.x
|
2020-06-07 17:31:42 -04:00
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2021-06-12 22:54:16 -04:00
|
|
|
node-version: 14.x
|
2020-06-07 17:31:42 -04:00
|
|
|
- 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:
|
2021-06-28 18:27:37 -04:00
|
|
|
java-version: '16'
|
|
|
|
distribution: 'adopt'
|
2021-06-12 22:54:16 -04:00
|
|
|
- name: Install dependencies
|
|
|
|
run: npm install
|
|
|
|
- name: Run tests
|
|
|
|
run: npm test -- -g ${{ matrix.mcVersion }}
|
2021-04-07 10:13:57 -04:00
|
|
|
packet-cycle-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-06-12 22:54:16 -04:00
|
|
|
- name: Use Node.js 14.x
|
2021-04-07 10:13:57 -04:00
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2021-06-12 22:54:16 -04:00
|
|
|
node-version: 14.x
|
2021-04-07 10:13:57 -04:00
|
|
|
- name: Setup Java JDK
|
|
|
|
uses: actions/setup-java@v1.4.3
|
|
|
|
with:
|
2021-06-28 18:27:37 -04:00
|
|
|
java-version: '16'
|
|
|
|
distribution: 'adopt'
|
2021-04-07 10:13:57 -04:00
|
|
|
- run: npm install && npm run test-non-par
|