generated from PrismarineJS/prismarine-template
-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (44 loc) · 1.23 KB
/
pr-workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: PR-WORKFLOW
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
save-pr-number:
runs-on: ubuntu-latest
steps:
- name: make directory
run: mkdir output
- name: Save PR number
run: echo ${{ github.event.number }} > ./output/NR
- name: save to artifact
uses: actions/upload-artifact@v2
with:
name: packets
path: output
test:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
mcVersionIndex: ['1.8.8', '1.9.4', '1.10.2', '1.11.2', '1.12.2', '1.13.2', '1.14.4', '1.15.2', '1.16.5', '1.17.1', '1.18.2', '1.19', '1.19.2', '1.19.3', '1.19.4', '1.20.1']
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: 17
java-package: jre
- run: npm install
- name: Use Dumper
run: |
mkdir output
node bin/dumpPackets -v ${{ matrix.mcVersionIndex }} -o output/${{ matrix.mcVersionIndex }}
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: packets
path: output