From dcea457cb5558eb9f2ebad34a0ab90f9b50c1856 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 14 Jan 2020 13:51:33 -0800 Subject: [PATCH] Migrating to Github actions (#68) * enable github actions * add pr workflows * updated name * updatd --- .github/workflows/pxt-buildpr.yml | 31 ++++++++++++++++++++++ .github/workflows/pxt-buildtarget.yml | 37 +++++++++++++++++++++++++++ README.md | 2 +- package.json | 2 +- 4 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/pxt-buildpr.yml create mode 100644 .github/workflows/pxt-buildtarget.yml diff --git a/.github/workflows/pxt-buildpr.yml b/.github/workflows/pxt-buildpr.yml new file mode 100644 index 00000000..2d2450d6 --- /dev/null +++ b/.github/workflows/pxt-buildpr.yml @@ -0,0 +1,31 @@ +name: pxt-buildpr + +on: [pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install + run: | + sudo apt-get install xvfb + sudo npm install -g pxt + npm install + - name: pxt ci + run: | + pxt ci + env: + CHROME_BIN: chromium-browser + DISPLAY: :99.0 + CI: true diff --git a/.github/workflows/pxt-buildtarget.yml b/.github/workflows/pxt-buildtarget.yml new file mode 100644 index 00000000..2f15ca1f --- /dev/null +++ b/.github/workflows/pxt-buildtarget.yml @@ -0,0 +1,37 @@ +name: pxt-buildtarget + +on: + push: + branches: master + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install + run: | + sudo apt-get install xvfb + sudo npm install -g pxt + npm install + - name: pxt ci + run: | + pxt ci + env: + CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }} + PXT_ACCESS_TOKEN: ${{ secrets.PXT_ACCESS_TOKEN }} + PXT_RELEASE_REPO: ${{ secrets.PXT_RELEASE_REPO }} + NPM_ACCESS_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} + CHROME_BIN: chromium-browser + DISPLAY: :99.0 + CI: true diff --git a/README.md b/README.md index 1c1b32b1..ccb74dc8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Calliope target for Microsoft MakeCode [![Build Status](https://travis-ci.org/microsoft/pxt-calliope.svg?branch=master)](https://travis-ci.org/microsoft/pxt-calliope) +# Calliope target for Microsoft MakeCode This editor is hosted at https://makecode.calliope.cc. diff --git a/package.json b/package.json index ecb3e48f..0680e1d8 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,6 @@ }, "dependencies": { "pxt-common-packages": "6.18.2", - "pxt-core": "5.31.10" + "pxt-core": "5.31.18" } }