From a179ec1052cadaf91b2367db51dfe845a0c7922f Mon Sep 17 00:00:00 2001 From: agracio Date: Sat, 16 Mar 2024 15:57:05 +0000 Subject: [PATCH] updating github actions --- .github/workflows/main.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bf23c144..6b0364bc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,6 +38,18 @@ jobs: sudo pkgutil --forget com.xamarin.mono-MDK.pkg sudo rm /etc/paths.d/mono-commands + - if: runner.os == 'Windows' + name: testing variables + run: | + echo "EDGE_USE_CORECLR=1" | Out-File -FilePath $env:GITHUB_ENV -Append + echo "${{ env.EDGE_USE_CORECLR }}" + echo "EDGE_USE_CORECLR=" | Out-File -FilePath $env:GITHUB_ENV -Append + echo "${{ env.EDGE_USE_CORECLR }}" + + - if: ${{ (runner.os == 'Linux') || (runner.os == 'macOS') }} + name: Run tests + run: echo condition + - if: runner.os == 'Windows' name: Install Windows dependencies run: npm i @@ -53,10 +65,14 @@ jobs: run: | npm test echo "EDGE_USE_CORECLR=1" | Out-File -FilePath $env:GITHUB_ENV -Append + echo "${{ env.EDGE_USE_CORECLR }}" npm test - - if: runner.os == 'Linux' - name: Run Linux tests - run: EDGE_USE_CORECLR=1 npm test - - if: runner.os == 'macOS' - name: Run macOS tests + # - if: runner.os == 'Linux' + # name: Run Linux tests + # run: EDGE_USE_CORECLR=1 npm test + # - if: runner.os == 'macOS' + # name: Run macOS tests + # run: EDGE_USE_CORECLR=1 npm test + - if: ${{ (runner.os == 'Linux') || (runner.os == 'macOS') }} + name: Run tests run: EDGE_USE_CORECLR=1 npm test