Синхронизированы версии плагинов #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MIT License | |
# Copyright (C) 2020 Tymko Oleg <[email protected]> and contributors | |
# All rights reserved. | |
name: Тестирование | |
# Любой пуш и pr в проекте | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
oscript_version: ['1.8.3'] | |
steps: | |
# Загрузка проекта | |
- name: Актуализация | |
uses: actions/checkout@v2 | |
# Установка OneScript конкретной версии | |
- name: Установка OneScript | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
uses: otymko/[email protected] | |
with: | |
version: ${{ matrix.oscript_version }} | |
# Установка зависимостей пакета | |
- name: Установка зависимостей | |
run: | | |
opm install opm | |
opm install --dev | |
opm install 1testrunner | |
opm install 1bdd | |
opm install notify | |
opm install coverage | |
# Задача тестирования, в результате ожидается успешное выполнение | |
- name: Тестирование Unit | |
run: oscript ./tasks/test.os true | |
# - name: Тестирование Integrated | |
# run: | | |
# docker run -e OSCRIPT_VERSION=${{ matrix.oscript_version }} -v $(pwd):/work_dir harmit/ci-image sh -c 'cd /work_dir; sh /work_dir/travis-ci.sh; exit' | |
# grep 'Результат прогона тестов <Да>' /tmp/test.log |