-
Notifications
You must be signed in to change notification settings - Fork 639
52 lines (47 loc) · 1.38 KB
/
testghpkgs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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