Pc1.20.2 #1110
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', '1.17.1', '1.18.2', '1.19', '1.19.2', '1.19.3', '1.19.4', '1.20', '1.20.1', '1.20.2'] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18.x | |
- name: Setup Java JDK | |
uses: actions/setup-java@v1.4.3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Install dependencies | |
run: npm install | |
# for testing | |
- run: curl -L https://raw.githubusercontent.com/extremeheat/minecraft-data/1.20.2nbt/data/pc/1.20.2/protocol.json -o ./node_modules/minecraft-data/minecraft-data/data/pc/1.20.2/protocol.json | |
- 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 18.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18.x | |
- name: Setup Java JDK | |
uses: actions/setup-java@v1.4.3 | |
with: | |
java-version: '16' | |
distribution: 'adopt' | |
- run: npm install && npm run test-non-par |