Bump 1.21.2 version #747
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
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 |