Skip to content

Commit

Permalink
Update dev-robgruen-android_sans_msal_typeagent(test).yml
Browse files Browse the repository at this point in the history
  • Loading branch information
robgruen authored Nov 13, 2024
1 parent 4a4c270 commit a361746
Showing 1 changed file with 52 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,46 +14,76 @@ jobs:
runs-on: windows-latest

steps:
- name: Setup Git LF
run: |
git config --global core.autocrlf false
- uses: actions/checkout@v4

- name: Set up Node.js version
uses: actions/setup-node@v3
- uses: dorny/paths-filter@v3
id: filter
with:
node-version: '6.9.1'

- name: npm install, build, and test
filters: |
ts:
- "ts/**"
- ".github/workflows/build-ts.yml"
- uses: pnpm/action-setup@v4
if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.ts == 'true' }}
name: Install pnpm
with:
version: 9
run_install: false
- uses: actions/setup-node@v4
if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.ts == 'true' }}
with:
node-version: ${{ matrix.version }}
cache: "pnpm"
cache-dependency-path: ts/pnpm-lock.yaml
- name: Install dependencies
if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.ts == 'true' }}
working-directory: ts
run: |
npm install
npm run build --if-present
npm run test --if-present
pnpm install --frozen-lockfile --strict-peer-dependencies
- name: Build
if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.ts == 'true' }}
working-directory: ts
run: |
npm run build
- name: Test
if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.ts == 'true' }}
working-directory: ts
run: |
npm run test
- name: Lint
if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.ts == 'true' }}
working-directory: ts
run: |
npm run lint
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.4.3
with:
name: node-app
path: .
path: ./ts

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'test'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: node-app

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_1737A011C9524DB7B04BBA3C4CAD4D3B }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_647DD88831BD44CAB40887C46F38D94B }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_CC74772213664D8DBCA650B4E6EEFEA1 }}

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_1737A011C9524DB7B04BBA3C4CAD4D3B }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_647DD88831BD44CAB40887C46F38D94B }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_CC74772213664D8DBCA650B4E6EEFEA1 }}

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v3
Expand All @@ -62,4 +92,4 @@ jobs:
app-name: 'typeagent'
slot-name: 'test'
package: .


0 comments on commit a361746

Please sign in to comment.