From 340a5a531531d5c0e6470d2247f1f9b75bf97bc7 Mon Sep 17 00:00:00 2001 From: Henning Dieterichs Date: Sat, 29 Aug 2020 17:41:53 +0200 Subject: [PATCH] sets up github build action. --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ package.json | 8 +++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..caa5ee5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +on: + push: + branches: + - master + pull_request: + +jobs: + build: + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: true + - name: Install Node.js + uses: actions/setup-node@v1 + with: + node-version: 10.x + - run: yarn install + - run: yarn build diff --git a/package.json b/package.json index 84ce935..d1cfb51 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,13 @@ "./simple-demo", "./playground" ], - "scripts": {}, + "scripts": { + "build": "yarn build-core && yarn build-bundle && yarn build-playground && yarn build-simple-demo", + "build-core": "yarn workspace @hediet/visualization-core run build", + "build-bundle": "yarn workspace @hediet/visualization-bundle run build", + "build-playground": "yarn workspace playground run build", + "build-simple-demo": "yarn workspace simple-demo run build" + }, "devDependencies": { "prettier": "^1.19.1" }