From 22b76e3fdb2966acac86e2c67dc89f2fadeb1562 Mon Sep 17 00:00:00 2001 From: Thada Wangthammang Date: Mon, 6 May 2024 02:36:30 +0700 Subject: [PATCH] fix(github-actions): azure functions deploy process --- .github/workflows/e2e.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index ac657e5..94f981b 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -49,9 +49,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: oven-sh/setup-bun@v1 - if: matrix.runtime == 'bun' - name: Use Node.js ${{ matrix.version }} if: matrix.runtime == 'node' @@ -80,16 +78,14 @@ jobs: with: creds: ${{ secrets.AZURE_CREDENTIALS_E2E_TESTS }} - - name: Azure CLI script - uses: azure/cli@v2 + - name: Deploy to Azure Functions + uses: Azure/functions-action@v1 with: - azcliversion: 2.58.0 - inlineScript: | - cd examples/with-${{ matrix.runtime }}/.nmt/dist && \ - func azure functionapp publish nmt-e2e-${{ matrix.target }}-${{ secrets[matrix.resource_identifier_key] }} + app-name: nmt-e2e-${{ matrix.target }}-${{ secrets[matrix.resource_identifier_key] }} + package: examples/with-${{ matrix.runtime }}/.nmt/dist - name: Wait for the deployment to finish - run: sleep 60 + run: sleep 15 - name: Run E2E tests run: pnpm exec nx run @infra/azure-functions:test