pxt-calliope/.github/workflows/testghpkgs.yml

53 lines
1.4 KiB
YAML
Raw Normal View History

name: pxt-testghpkgs
on:
2020-11-30 08:45:00 +01:00
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x]
2021-11-25 17:27:39 +01:00
branch: [stable3.0]
steps:
2021-11-25 17:27:39 +01:00
- uses: actions/checkout@v2
with:
ref: ${{ matrix.branch }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: |
sudo npm install -g pxt
npm install
- name: pxt buildtarget
run: pxt buildtarget
- name: cache build output
uses: actions/cache@v1
env:
cache-name: cache-testghpkgs
with:
path: temp/ghpkgs
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: pxt testghpkgs
run: pxt testghpkgs
env:
PXT_FORCE_GITHUB_PROXY: 1
PXT_ACCESS_TOKEN: ${{ secrets.PXT_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_ACCESS_TOKEN }}
- name: upload build log
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
2021-11-25 17:27:39 +01:00
name: logs-${{ matrix.branch }}
path: temp/ghpkgs/*.txt