-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (43 loc) · 1.18 KB
/
test.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
name: Test
on:
- push
- pull_request
jobs:
test:
name: Test
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache Node Modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-
- name: Cache Build Info
uses: actions/cache@v2
with:
path: '**/*.tsbuildinfo'
key: ${{ runner.os }}-tsbuildinfo
restore-keys: |
${{ runner.os }}-tsbuildinfo-
${{ runner.os }}-
- name: Test Core
run: |
cd core
npm i
sudo npm link
npm run build
npm test
- name: Test Java Packages
run: |
cd java
cd 1.15 && npm i && npm link @mcschema/core && cd ..
cd 1.16 && npm i && npm link @mcschema/core && cd ..
cd 1.17 && npm i && npm link @mcschema/core && cd ..
cd ..
npm run build