Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Кэширование зависимостей opm #18

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
16 changes: 13 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -31,6 +31,12 @@ jobs:
- name: Актуализация
uses: actions/checkout@v4

- uses: actions/cache@v4
id: cache
with:
path: '**/oscript_modules'
key: ${{ runner.os }}-${{ inputs.oscript_version }}-${{ hashFiles('**/packagedef') }}

- name: Установка свойств git
shell: bash
run: |
@@ -56,11 +62,15 @@ jobs:
with:
version: ${{ steps.extract_oscript_version.outputs.version }}

- name: Установка зависимостей
- name: Обновление opm (win)
run: |
opm install opm
opm install -l --dev

echo ""

- name: Установка зависимостей
if: steps.cache.outputs.cache-hit != 'true'
run: opm install -l --dev

- name: Установка дополнительных пакетов
if: inputs.additional_oscript_packages != ''
run: opm install -l ${{ inputs.additional_oscript_packages }}