From 6774193c54331ecc20e9197ac56ee535ff5e58c3 Mon Sep 17 00:00:00 2001 From: Peli Date: Tue, 14 Jan 2020 13:35:13 -0800 Subject: [PATCH] add pr workflows --- .github/workflows/pxt-buildpr.yml | 31 +++++++++++++++++++++++++++ .github/workflows/pxt-buildtarget.yml | 4 +++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pxt-buildpr.yml diff --git a/.github/workflows/pxt-buildpr.yml b/.github/workflows/pxt-buildpr.yml new file mode 100644 index 00000000..79354f9f --- /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 index 0e538dc3..2f15ca1f 100644 --- a/.github/workflows/pxt-buildtarget.yml +++ b/.github/workflows/pxt-buildtarget.yml @@ -1,6 +1,8 @@ name: pxt-buildtarget -on: [push] +on: + push: + branches: master jobs: build: