From 452f6560ff08ab0f24156949cd8faf81df85a654 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Fri, 29 May 2020 14:34:34 +0300 Subject: [PATCH] add ci for pull requests --- .github/workflows/common_tests.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/common_tests.yml diff --git a/.github/workflows/common_tests.yml b/.github/workflows/common_tests.yml new file mode 100644 index 0000000..b8227bc --- /dev/null +++ b/.github/workflows/common_tests.yml @@ -0,0 +1,29 @@ +name: Run tests +on: [pull_request] +jobs: + CommonTests: + strategy: + fail-fast: false + matrix: + os: [ubuntu-16.04, ubuntu-latest, windows-2016, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Run tests + shell: pwsh + run: | + Install-Module Pester -Force -Scope CurrentUser + Import-Module Pester + $pesterParams = @( + @{ + Path="./packages-generation/manifest-utils.Tests.ps1"; + }, + ) + Invoke-Pester -Script $pesterParams -OutputFile "test_results.xml" -OutputFormat NUnitXml + - name: Upload math result for job 1 + uses: actions/upload-artifact@v1 + with: + name: test_results + path: test_results.xml \ No newline at end of file