mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-19 20:12:25 -05:00
aac922dd3d
* Make 1.17 explicitly tested * update readme
47 lines
1 KiB
YAML
47 lines
1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
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']
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js 14.x
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14.x
|
|
- name: Setup Java JDK
|
|
uses: actions/setup-java@v1.4.3
|
|
with:
|
|
java-version: 1.8
|
|
java-package: jre
|
|
- name: Install dependencies
|
|
run: npm install
|
|
- name: Run tests
|
|
run: npm test -- -g ${{ matrix.mcVersion }}
|
|
packet-cycle-test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js 14.x
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14.x
|
|
- 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
|