Skip to content

Commit a361746

Browse files
authored
Update dev-robgruen-android_sans_msal_typeagent(test).yml
1 parent 4a4c270 commit a361746

File tree

1 file changed

+52
-22
lines changed

1 file changed

+52
-22
lines changed

.github/workflows/dev-robgruen-android_sans_msal_typeagent(test).yml

+52-22
Original file line numberDiff line numberDiff line change
@@ -14,46 +14,76 @@ jobs:
1414
runs-on: windows-latest
1515

1616
steps:
17+
- name: Setup Git LF
18+
run: |
19+
git config --global core.autocrlf false
1720
- uses: actions/checkout@v4
18-
19-
- name: Set up Node.js version
20-
uses: actions/setup-node@v3
21+
- uses: dorny/paths-filter@v3
22+
id: filter
2123
with:
22-
node-version: '6.9.1'
23-
24-
- name: npm install, build, and test
24+
filters: |
25+
ts:
26+
- "ts/**"
27+
- ".github/workflows/build-ts.yml"
28+
- uses: pnpm/action-setup@v4
29+
if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.ts == 'true' }}
30+
name: Install pnpm
31+
with:
32+
version: 9
33+
run_install: false
34+
- uses: actions/setup-node@v4
35+
if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.ts == 'true' }}
36+
with:
37+
node-version: ${{ matrix.version }}
38+
cache: "pnpm"
39+
cache-dependency-path: ts/pnpm-lock.yaml
40+
- name: Install dependencies
41+
if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.ts == 'true' }}
42+
working-directory: ts
2543
run: |
26-
npm install
27-
npm run build --if-present
28-
npm run test --if-present
29-
44+
pnpm install --frozen-lockfile --strict-peer-dependencies
45+
- name: Build
46+
if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.ts == 'true' }}
47+
working-directory: ts
48+
run: |
49+
npm run build
50+
- name: Test
51+
if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.ts == 'true' }}
52+
working-directory: ts
53+
run: |
54+
npm run test
55+
- name: Lint
56+
if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.ts == 'true' }}
57+
working-directory: ts
58+
run: |
59+
npm run lint
3060
- name: Upload artifact for deployment job
31-
uses: actions/upload-artifact@v4
61+
uses: actions/upload-artifact@v4.4.3
3262
with:
3363
name: node-app
34-
path: .
64+
path: ./ts
3565

3666
deploy:
3767
runs-on: ubuntu-latest
3868
needs: build
3969
environment:
4070
name: 'test'
4171
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
42-
permissions:
43-
id-token: write #This is required for requesting the JWT
72+
permissions:
73+
id-token: write #This is required for requesting the JWT
4474

4575
steps:
4676
- name: Download artifact from build job
4777
uses: actions/download-artifact@v4
4878
with:
4979
name: node-app
50-
51-
- name: Login to Azure
52-
uses: azure/login@v2
53-
with:
54-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_1737A011C9524DB7B04BBA3C4CAD4D3B }}
55-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_647DD88831BD44CAB40887C46F38D94B }}
56-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_CC74772213664D8DBCA650B4E6EEFEA1 }}
80+
81+
- name: Login to Azure
82+
uses: azure/login@v2
83+
with:
84+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_1737A011C9524DB7B04BBA3C4CAD4D3B }}
85+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_647DD88831BD44CAB40887C46F38D94B }}
86+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_CC74772213664D8DBCA650B4E6EEFEA1 }}
5787

5888
- name: 'Deploy to Azure Web App'
5989
uses: azure/webapps-deploy@v3
@@ -62,4 +92,4 @@ jobs:
6292
app-name: 'typeagent'
6393
slot-name: 'test'
6494
package: .
65-
95+

0 commit comments

Comments
 (0)