pxt-testghpkgs #87
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pxt-testghpkgs | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [8.x] | |
branch: [stable3.0] | |
steps: | |
- 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: | |
name: logs-${{ matrix.branch }} | |
path: temp/ghpkgs/*.txt |