From 955e54203fa2365e2ed8c83e84346065beb22dae Mon Sep 17 00:00:00 2001 From: Nikita Fedkin Date: Tue, 12 Dec 2023 23:46:55 +0100 Subject: [PATCH] =?UTF-8?q?Workflow=20=D0=B4=D0=BB=D1=8F=20performance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/perfomance.yml | 47 +++++++------------------------- 1 file changed, 10 insertions(+), 37 deletions(-) diff --git a/.github/workflows/perfomance.yml b/.github/workflows/perfomance.yml index 6552b76..fbc46bf 100644 --- a/.github/workflows/perfomance.yml +++ b/.github/workflows/perfomance.yml @@ -1,44 +1,17 @@ -# MIT License -# Copyright (C) 2020 Tymko Oleg and contributors -# All rights reserved. - name: Производительность -# Любой пуш и pr в проекте -on: [push, pull_request] + +on: + push: + pull_request: + workflow_dispatch: jobs: - build: - runs-on: ${{ matrix.os }} + test: strategy: fail-fast: false matrix: - os: ['ubuntu-latest'] oscript_version: ['dev', 'lts-dev'] - - steps: - # Загрузка проекта - - name: Актуализация - uses: actions/checkout@v2 - - # Установка OneScript конкретной версии - - name: Установка OneScript - uses: otymko/setup-onescript@v1.3 - with: - version: ${{ matrix.oscript_version }} - - # Установка зависимостей пакета - - name: Установка зависимостей - run: | - opm install opm - opm install -l --dev - - # Задача тестирования, в результате ожидается успешное выполнение - - name: Тестирование - run: oscript ./tasks/perfomance.os - - # Публикация результатов тестирования - - name: Publish Perfomance Test Report - uses: mikepenz/action-junit-report@v3 - if: always() # always run even if the previous step fails - with: - report_paths: '**/out/tests.xml' \ No newline at end of file + uses: autumn-library/workflows/.github/workflows/test.yml@main + with: + oscript_version: ${{ matrix.oscript_version }} + test_script_path: './tasks/performance.os'