mirror of
https://github.com/barkeser2002/node-minecraft-protocol.git
synced 2026-09-25 17:56:08 +03:00
* Update to version 1.21.9 * Fix branch name in CI workflow for minecraft-data * Update ci.yml * 1.21.9: Add lpvec3 data type (#1453) * Update to version 1.21.10 * Update ci.yml * Update ci.yml * Update packetTest.js types * Handle code_of_conduct packets * Implement lpVec3 * Update ci.yml --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: extremeheat <extreme@protonmail.ch> * optimise lpvec3 * lint * Update lpVec3.js * typo * Update lpVec3.js * Update lpVec3.js * ExplosionParticleEntry --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Romain Beaumont <romain.rom1@gmail.com> Co-authored-by: extremeheat <extreme@protonmail.ch> Co-authored-by: SuperGamerTron <45374546+SuperGamerTron@users.noreply.github.com>
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
Lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js 22.x
|
|
uses: actions/setup-node@v1.4.4
|
|
with:
|
|
node-version: 22.x
|
|
- run: npm i && npm run lint
|
|
PrepareSupportedVersions:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js 22.x
|
|
uses: actions/setup-node@v1.4.4
|
|
with:
|
|
node-version: 22.x
|
|
- id: set-matrix
|
|
run: |
|
|
node -e "
|
|
const supportedVersions = require('./src/version').supportedVersions;
|
|
console.log('matrix='+JSON.stringify({'include': supportedVersions.map(mcVersion => ({mcVersion}))}))
|
|
" >> $GITHUB_OUTPUT
|
|
test:
|
|
needs: PrepareSupportedVersions
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix: ${{fromJson(needs.PrepareSupportedVersions.outputs.matrix)}}
|
|
fail-fast: false
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js 22.x
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 22.x
|
|
- name: Setup Java JDK
|
|
uses: actions/setup-java@v1.4.3
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'adopt'
|
|
- name: Install dependencies
|
|
run: npm install
|
|
- name: Run tests
|
|
run: npm run mochaTest -- -g ${{ matrix.mcVersion }}v
|