add pr workflows

This commit is contained in:
Peli 2020-01-14 13:35:13 -08:00
parent cdecc711d4
commit 6774193c54
2 changed files with 34 additions and 1 deletions

31
.github/workflows/pxt-buildpr.yml vendored Normal file
View File

@ -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

View File

@ -1,6 +1,8 @@
name: pxt-buildtarget name: pxt-buildtarget
on: [push] on:
push:
branches: master
jobs: jobs:
build: build: