Skip to content

Commit

Permalink
Workflow для performance
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 authored Dec 12, 2023
1 parent 92623f1 commit 955e542
Showing 1 changed file with 10 additions and 37 deletions.
47 changes: 10 additions & 37 deletions .github/workflows/perfomance.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,17 @@
# MIT License
# Copyright (C) 2020 Tymko Oleg <[email protected]> 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/[email protected]
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'
uses: autumn-library/workflows/.github/workflows/test.yml@main
with:
oscript_version: ${{ matrix.oscript_version }}
test_script_path: './tasks/performance.os'

0 comments on commit 955e542

Please sign in to comment.