2021-01-27 23:57:14 +01:00
|
|
|
name: pxt-buildpr
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-09-23 00:51:32 +02:00
|
|
|
node-version: [14.x]
|
2021-01-27 23:57:14 +01:00
|
|
|
|
|
|
|
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
|