From 3e6d6af3489f6c721d9a572a7ebdacf72419461a Mon Sep 17 00:00:00 2001 From: sfaqer Date: Fri, 30 Aug 2024 15:53:37 +1000 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=BD=D1=8F=D0=BB=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D1=8C=20?= =?UTF-8?q?=D0=BE=D1=82=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D0=B8=20=D1=81?= =?UTF-8?q?=D1=80=D0=B5=D0=B4=D1=8B=20=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=B2=D0=B5=D0=BB=20workflow=20=D0=BD=D0=B0=20autumn-library/w?= =?UTF-8?q?orkflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 15 +++++++++++++ .github/workflows/testing.yml | 41 +++++++++-------------------------- packagedef | 2 +- 3 files changed, 26 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..86573db --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,15 @@ +name: Публикация релиза + +on: + release: + types: + - published + workflow_dispatch: + +jobs: + release: + uses: autumn-library/workflows/.github/workflows/release.yml@main + with: + package_mask: "collectionos-*.ospx" + secrets: + PUSH_TOKEN: ${{ secrets.PUSH_TOKEN }} diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index a234345..c67c0ff 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -1,37 +1,16 @@ -# 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', 'macos-latest', 'windows-latest'] - oscript_version: ['1.8.3', 'stable', '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/test.os + oscript_version: ['dev', 'lts-dev', 'default'] + uses: autumn-library/workflows/.github/workflows/test.yml@main + with: + oscript_version: ${{ matrix.oscript_version }} diff --git a/packagedef b/packagedef index ddaec91..28d9ab9 100644 --- a/packagedef +++ b/packagedef @@ -3,7 +3,7 @@ .Автор("Кирилл Черненко") .АдресАвтора("https://github.com/sfaqer") .Описание("Фреймворк коллекций для OneScript") - .ВерсияСреды("1.8.3") + .ВерсияСреды("1.9.1") .ВключитьФайл("src") .ВключитьФайл("README.md")