diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 94f981b..ac6b318 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -75,19 +75,23 @@ jobs: - name: Azure Login uses: azure/login@v2 + if: matrix.isDeployable == true with: creds: ${{ secrets.AZURE_CREDENTIALS_E2E_TESTS }} - name: Deploy to Azure Functions uses: Azure/functions-action@v1 + if: matrix.isDeployable == true with: 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 + if: matrix.isDeployable == true run: sleep 15 - name: Run E2E tests + if: matrix.isDeployable == true run: pnpm exec nx run @infra/azure-functions:test env: AZURE_FUNCTIONS_URL: https://nmt-e2e-${{ matrix.target }}-${{ secrets[matrix.resource_identifier_key] }}.azurewebsites.net diff --git a/infra/azure-functions/src/config.ts b/infra/azure-functions/src/config.ts index 9ac0b3c..4c5fd74 100644 --- a/infra/azure-functions/src/config.ts +++ b/infra/azure-functions/src/config.ts @@ -6,6 +6,11 @@ export const infraConfigs = createInfraConfig( 'node18-win-x64': process.env.RESOURCE_IDENTIFIER_NODE18_WIN_X64, }, [ + { + platform: 'macos', + arch: 'arm64', + runtime: 'node18', + }, { platform: 'linux', arch: 'x64', diff --git a/infra/azure-functions/src/utils.ts b/infra/azure-functions/src/utils.ts index 9fbc016..ff0d305 100644 --- a/infra/azure-functions/src/utils.ts +++ b/infra/azure-functions/src/utils.ts @@ -24,6 +24,7 @@ export function createInfraConfig( return { ...infraConfig, + isDeployable: infraConfig.isDeployable ?? false, resourceIdentifier, }; });