From 99777f4280fe72efb3d6b93de8f39545bec2fc28 Mon Sep 17 00:00:00 2001 From: Pavel Butuzov <73579433+PavelButuzov@users.noreply.github.com> Date: Tue, 17 Sep 2024 09:29:29 +0300 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 116 ++++++++++++++++++------------------- 1 file changed, 58 insertions(+), 58 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 540a537..44be07e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,13 +1,13 @@ name: Test run-name: "#${{ github.run_number }} test by ${{ github.triggering_actor }}" on: - pull_request: - paths: - - "pkg/tms/**" - - "examples/**" - - "go.mod" - - "tms.config.json" - - ".github/**/test.yml" + # pull_request: + # paths: + # - "pkg/tms/**" + # - "examples/**" + # - "go.mod" + # - "tms.config.json" + # - ".github/**/test.yml" workflow_dispatch: env: DOTNET_VERSION: 8 @@ -20,54 +20,54 @@ env: TMS_PRIVATE_TOKEN: ${{ secrets.TESTIT_PRIVATE_TOKEN }} TMS_URL: ${{ secrets.TESTIT_URL }} TMS_CONFIG_FILE: ${{ github.workspace }}/tms.config.json -jobs: - test: - name: ${{ matrix.project_name }} - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - include: - - configuration_id: GOLANG_CONFIGURATION_ID - project_id: GOLANG_PROJECT_ID - project_name: golang - env: - TMS_CONFIGURATION_ID: ${{ secrets[matrix.configuration_id] }} - TMS_PROJECT_ID: ${{ secrets[matrix.project_id] }} - TMS_TEST_RUN_NAME: ${{ matrix.project_name }} TestRun - steps: - - name: Checkout adapters-go - uses: actions/checkout@v4 - - name: Checkout api-validator-dotnet - uses: actions/checkout@v4 - with: - repository: testit-tms/api-validator-dotnet - token: ${{ env.GITHUB_PAT }} - path: api-validator-dotnet - - name: Setup dotnet - uses: actions/setup-dotnet@v4 - with: - dotnet-version: ${{ env.DOTNET_VERSION }} - - name: Setup go - uses: actions/setup-go@v4 - with: - go-version: ${{ env.GOLANG_VERSION }} - - name: Setup python - uses: actions/setup-python@v5 - with: - python-version: ${{ env.PYTHON_VERSION }} - - name: Setup environment - run: | - dotnet build --configuration Debug --property WarningLevel=0 api-validator-dotnet - pip install testit-cli - - name: Create TestRun - run: | - testit testrun create --token ${{ env.TMS_PRIVATE_TOKEN }} --output ${{ env.TEMP_FILE }} - echo "TMS_TEST_RUN_ID=$(<${{ env.TEMP_FILE }})" >> $GITHUB_ENV - - name: Test - run: | - cd examples - go test || exit 0 - - name: Validate - run: | - dotnet test --configuration Debug --no-build --logger:"console;verbosity=detailed" api-validator-dotnet +# jobs: +# test: +# name: ${{ matrix.project_name }} +# runs-on: ubuntu-latest +# strategy: +# fail-fast: false +# matrix: +# include: +# - configuration_id: GOLANG_CONFIGURATION_ID +# project_id: GOLANG_PROJECT_ID +# project_name: golang +# env: +# TMS_CONFIGURATION_ID: ${{ secrets[matrix.configuration_id] }} +# TMS_PROJECT_ID: ${{ secrets[matrix.project_id] }} +# TMS_TEST_RUN_NAME: ${{ matrix.project_name }} TestRun +# steps: +# - name: Checkout adapters-go +# uses: actions/checkout@v4 +# - name: Checkout api-validator-dotnet +# uses: actions/checkout@v4 +# with: +# repository: testit-tms/api-validator-dotnet +# token: ${{ env.GITHUB_PAT }} +# path: api-validator-dotnet +# - name: Setup dotnet +# uses: actions/setup-dotnet@v4 +# with: +# dotnet-version: ${{ env.DOTNET_VERSION }} +# - name: Setup go +# uses: actions/setup-go@v4 +# with: +# go-version: ${{ env.GOLANG_VERSION }} +# - name: Setup python +# uses: actions/setup-python@v5 +# with: +# python-version: ${{ env.PYTHON_VERSION }} +# - name: Setup environment +# run: | +# dotnet build --configuration Debug --property WarningLevel=0 api-validator-dotnet +# pip install testit-cli +# - name: Create TestRun +# run: | +# testit testrun create --token ${{ env.TMS_PRIVATE_TOKEN }} --output ${{ env.TEMP_FILE }} +# echo "TMS_TEST_RUN_ID=$(<${{ env.TEMP_FILE }})" >> $GITHUB_ENV +# - name: Test +# run: | +# cd examples +# go test || exit 0 +# - name: Validate +# run: | +# dotnet test --configuration Debug --no-build --logger:"console;verbosity=detailed" api-validator-dotnet