node-minecraft-protocol/.github/workflows/ci.yml
u9g 6df20541b4
Add snapshot 21w07a support (#838)
* Add snapshot `21w07a` support

* Update package.json

* Update version.js

* Update ci.yml

* update mcdata

* Update README.md

* Update mcdata

* Add 21w07a to tested versions

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2021-04-16 22:56:39 +02:00

54 lines
1.2 KiB
YAML

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
mcVersionIndex: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
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
- env:
CIRCLE_NODE_INDEX: ${{ matrix.mcVersionIndex }}
CIRCLE_NODE_TOTAL: 11
run: npm test
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