From 99c2cf72bb86d55128da9d31cf9ffc4dd6835b95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Kazami=20=5B=E4=B9=94=E6=B2=BB=C2=B7=E9=A2=A8?= =?UTF-8?q?=E8=A6=8B=5D?= Date: Wed, 8 Feb 2023 00:22:35 +0000 Subject: [PATCH] Update azure-staticwebapp.yml --- .github/workflows/azure-staticwebapp.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/azure-staticwebapp.yml b/.github/workflows/azure-staticwebapp.yml index b382c40..89ded0b 100644 --- a/.github/workflows/azure-staticwebapp.yml +++ b/.github/workflows/azure-staticwebapp.yml @@ -36,18 +36,29 @@ jobs: pull-requests: write # for Azure/static-web-apps-deploy to comment on PRs if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') runs-on: [ Linux, ARO ] + + strategy: + matrix: + node-version: [16.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + name: Build and Deploy Job steps: - uses: actions/checkout@v3 with: submodules: true - - uses: actions/setup-node@v3 + + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 with: - node-version: 16 + node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm i - run: npm run build --if-present - - run: npm test +# - run: npm test + + - name: Deploy build artifacts to Azure id: builddeploy uses: Azure/static-web-apps-deploy@v1