-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Написан readme и дополнен action.yml.
- Loading branch information
Showing
2 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,58 @@ | ||
# setup-oscript | ||
# Setup-Onescript | ||
|
||
Setup-Onescript позволяет использовать в действия Github Action [Onescript](https://oscript.io/). При установке используется другой проект [OVM](https://github.com/oscript-library/ovm) - OneScript Version Manager. | ||
|
||
## Использование | ||
|
||
Описание действия [action.yml](action.yml) | ||
|
||
### Базовый пример | ||
|
||
```yaml | ||
- uses: actions/checkout@v2 | ||
- uses: otymko/setup-onescript@v1 | ||
with: | ||
version: 1.3.0 # Требуемая версия OneScript | ||
- run: oscript /path/to/script/test.os | ||
``` | ||
Параметр `version` поддерживает следующие значения: | ||
* 1.0.21 | ||
* 1.2.0 | ||
* 1.3.0 | ||
* dev (текущая ночная сборка) | ||
|
||
### Использование matrix | ||
|
||
```yaml | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
oscript_version: [1.2.0, 1.3.0, dev] | ||
name: Тестирование проекта | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Установка Onescript | ||
uses: otymko/setup-onescript@v1 | ||
with: | ||
java-version: ${{ matrix.oscript_version }} | ||
- run: oscript /path/to/script/test.os | ||
``` | ||
|
||
### Пример использования | ||
|
||
Этот Action используется в проекте [GitRules](https://github.com/otymko/gitrules). В этом проекте реализован workflow для тестирования. | ||
|
||
# Лицензия | ||
|
||
Данный проект размещен под лицензией [MIT License](LICENSE) | ||
|
||
# Контрибьютерам | ||
|
||
Доработка проводится по git-flow. | ||
|
||
|
||
|
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