microsoft/TypeAgent

Public

mirrored fromhttps://github.com/microsoft/TypeAgentAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.1.4-py

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/shell-tests.yml

134lines · modecode

1# Copyright (c) Microsoft Corporation.
2# Licensed under the MIT License.
3
4name: Shell Tests - Full Suite
5on:
6 #push:
7 # branches: ["main"]
8 schedule:
9 - cron: "0 0 * * *" #start of every day
10
11permissions:
12 id-token: write
13 contents: read
14
15env:
16 NODE_OPTIONS: --max_old_space_size=8192
17# DEBUG: pw:browser* # PlayWright debug messages
18# ELECTRON_ENABLE_LOGGING: true # Electron debug messages
19# DEBUG: typeagent:* # TypeAgent debug messages
20
21# run only one of these at a time
22concurrency:
23 group: ${{ github.workflow }}
24 cancel-in-progress: true
25
26jobs:
27 build_ts:
28 strategy:
29 fail-fast: false
30 matrix:
31 os: ["windows-latest", "ubuntu-latest"]
32 version: [20]
33
34 runs-on: ${{ matrix.os }}
35 steps:
36 - if: runner.os == 'Linux'
37 run: |
38 sudo apt install libsecret-1-0
39
40 - name: Setup Git LF
41 run: |
42 git config --global core.autocrlf false
43
44 - uses: actions/checkout@v4
45
46 - uses: dorny/paths-filter@v3
47 id: filter
48 continue-on-error: true
49 with:
50 filters: |
51 ts:
52 - "ts/**"
53 - ".github/workflows/build-ts.yml"
54
55 - uses: pnpm/action-setup@v4
56 name: Install pnpm
57 with:
58 package_json_file: ts/package.json
59
60 - uses: actions/setup-node@v4
61 with:
62 node-version: ${{ matrix.version }}
63 cache: "pnpm"
64 cache-dependency-path: ts/pnpm-lock.yaml
65
66 - name: Install dependencies (pnpm)
67 working-directory: ts
68 run: |
69 pnpm install --frozen-lockfile --strict-peer-dependencies
70
71 - name: Install Playwright Browsers
72 run: pnpm exec playwright install --with-deps
73 working-directory: ts/packages/shell
74
75 - name: Build repo
76 working-directory: ts
77 run: |
78 npm run build
79
80 - name: Login to Azure
81 uses: azure/login@v2.2.0
82 with:
83 client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_5B0D2D6BA40F4710B45721D2112356DD }}
84 tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_39BB903136F14B6EAD8F53A8AB78E3AA }}
85 subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_F36C1F2C4B2C49CA8DD5C52FAB98FA30 }}
86
87 - name: Get Keys
88 run: |
89 node tools/scripts/getKeys.mjs --vault build-pipeline-kv
90 working-directory: ts
91
92 - name: Test CLI - verify .env & endpoint connectivity
93 run: |
94 npm run start:dev 'prompt' 'why is the sky blue'
95 working-directory: ts/packages/cli
96
97 - name: Shell Tests (windows)
98 if: ${{ runner.os == 'windows' }}
99 timeout-minutes: 60
100 run: |
101 npm run shell:test
102 working-directory: ts/packages/shell
103 continue-on-error: true
104
105 - name: Shell Tests (linux)
106 if: ${{ runner.os == 'Linux' }}
107 timeout-minutes: 60
108 run: |
109 Xvfb :99 -screen 0 1600x1200x24 & export DISPLAY=:99
110 npm run shell:test
111 working-directory: ts/packages/shell
112 continue-on-error: true
113
114 - uses: actions/upload-artifact@v4
115 if: ${{ !cancelled() }}
116 with:
117 name: test-results
118 path: ts/packages/shell/test-results/
119 overwrite: true
120 retention-days: 30
121
122 - uses: actions/upload-artifact@v4
123 if: ${{ !cancelled() }}
124 with:
125 name: playwright-report
126 path: ts/packages/shell/playwright-report/
127 overwrite: true
128 retention-days: 30
129
130 - name: Clean up Keys
131 run: |
132 rm ./.env
133 working-directory: ts
134 if: always()