forked from PrismarineJS/node-minecraft-protocol
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from PrismarineJS/master
Update upstream
- Loading branch information
Showing
35 changed files
with
525 additions
and
315 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,30 +9,39 @@ on: | |
- master | ||
|
||
jobs: | ||
test: | ||
Lint: | ||
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'] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 18.x | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v1.4.4 | ||
with: | ||
node-version: 18.x | ||
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
- 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 18.x | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run tests | ||
run: npm test -- -g ${{ matrix.mcVersion }} | ||
packet-cycle-test: | ||
node-version: 18.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 | ||
|
@@ -43,6 +52,9 @@ jobs: | |
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '16' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
- run: npm install && npm run test-non-par | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run tests | ||
run: npm run mochaTest -- -g ${{ matrix.mcVersion }}v |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
node_modules | ||
test/npm-debug.log | ||
test/server* | ||
test/server_* | ||
package-lock.json | ||
versions/ | ||
src/client/*.json |
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
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
Oops, something went wrong.