mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-19 20:12:25 -05:00
0d0b4d5af2
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ see also #780
34 lines
704 B
YAML
34 lines
704 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [14.x]
|
|
mcVersionIndex: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
|
|
|
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: 10
|
|
run: npm test
|