mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-01-04 03:48:40 +02:00
Merge branch 'main' of https://github.com/Bayselonarrend/OpenIntegrations
This commit is contained in:
commit
2d7a925c79
124
.github/workflows/oint_test.yml
vendored
124
.github/workflows/oint_test.yml
vendored
@ -8,46 +8,46 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
Decode:
|
Decode:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Расшифровать тестовые данные
|
- name: Расшифровать тестовые данные
|
||||||
run: gpg --quiet --batch --yes --decrypt --passphrase="$ENC_JSON" --output ./data.json ./data.json.gpg
|
run: gpg --quiet --batch --yes --decrypt --passphrase="$ENC_JSON" --output ./data.json ./data.json.gpg
|
||||||
env:
|
env:
|
||||||
ENC_JSON: ${{ secrets.ENC_JSON }}
|
ENC_JSON: ${{ secrets.ENC_JSON }}
|
||||||
- name: Записать тестовые данные в кэш
|
- name: Записать тестовые данные в кэш
|
||||||
uses: actions/cache/save@v3
|
uses: actions/cache/save@v3
|
||||||
with:
|
with:
|
||||||
key: test-data
|
key: test-data
|
||||||
path: ./data.json
|
path: ./data.json
|
||||||
|
|
||||||
Build:
|
Build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: otymko/setup-onescript@v1.4
|
- uses: otymko/setup-onescript@v1.4
|
||||||
with:
|
with:
|
||||||
version: 1.9.0
|
version: 1.9.0
|
||||||
|
|
||||||
- name: Установить asserts и 1testrunner
|
- name: Установить asserts и 1testrunner
|
||||||
run: |
|
run: |
|
||||||
opm install asserts
|
opm install asserts
|
||||||
opm install 1testrunner
|
opm install 1testrunner
|
||||||
|
|
||||||
- name: Установить OInt
|
- name: Установить OInt
|
||||||
run: |
|
run: |
|
||||||
cd ./OInt
|
cd ./OInt
|
||||||
opm build
|
opm build
|
||||||
opm install *.ospx
|
opm install *.ospx
|
||||||
|
|
||||||
- name: Записать артефакт
|
- name: Записать артефакт
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: oint
|
name: oint
|
||||||
path: ./OInt/*.ospx
|
path: ./OInt/*.ospx
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -731,26 +731,26 @@ steps:
|
|||||||
- name: Получить тестовые данные из кэша
|
- name: Получить тестовые данные из кэша
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
key: test-data_new
|
key: test-data_new
|
||||||
path: ./data.json
|
path: ./data.json
|
||||||
|
|
||||||
- name: Зашифровать данные обратно
|
- name: Зашифровать данные обратно
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
|
|
||||||
run: |
|
run: |
|
||||||
rm -f ./data.json.gpg
|
rm -f ./data.json.gpg
|
||||||
gpg --batch --symmetric --cipher-algo AES256 --passphrase="$ENC_JSON" data.json
|
gpg --batch --symmetric --cipher-algo AES256 --passphrase="$ENC_JSON" data.json
|
||||||
rm -f ./data.json
|
rm -f ./data.json
|
||||||
env:
|
env:
|
||||||
ENC_JSON: ${{ secrets.ENC_JSON }}
|
ENC_JSON: ${{ secrets.ENC_JSON }}
|
||||||
|
|
||||||
- name: Записать данные
|
- name: Записать данные
|
||||||
uses: stefanzweifel/git-auto-commit-action@v5
|
uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_user_name: Vitaly the Alpaca (bot)
|
commit_user_name: Vitaly the Alpaca (bot)
|
||||||
commit_user_email: vitaly.the.alpaca@gmail.com
|
commit_user_email: vitaly.the.alpaca@gmail.com
|
||||||
commit_author: Vitaly the Alpaca <vitaly.the.alpaca@gmail.com>
|
commit_author: Vitaly the Alpaca <vitaly.the.alpaca@gmail.com>
|
||||||
commit_message: Обновление зашифрованных данных по результатам тестов (workflow)
|
commit_message: Обновление зашифрованных данных по результатам тестов (workflow)
|
||||||
|
|
||||||
|
|
||||||
Clear-Cache:
|
Clear-Cache:
|
||||||
@ -760,27 +760,27 @@ if: ${{ always() }}
|
|||||||
steps:
|
steps:
|
||||||
- name: Очистка основного кэша
|
- name: Очистка основного кэша
|
||||||
run: |
|
run: |
|
||||||
curl -L \
|
curl -L \
|
||||||
-X DELETE \
|
-X DELETE \
|
||||||
-H "Accept: application/vnd.github+json" \
|
-H "Accept: application/vnd.github+json" \
|
||||||
-H "Authorization: Bearer ${{ secrets.TOKEN }}" \
|
-H "Authorization: Bearer ${{ secrets.TOKEN }}" \
|
||||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||||
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=test-data"
|
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=test-data"
|
||||||
|
|
||||||
- name: Очистка кэша Google
|
- name: Очистка кэша Google
|
||||||
run: |
|
run: |
|
||||||
curl -L \
|
curl -L \
|
||||||
-X DELETE \
|
-X DELETE \
|
||||||
-H "Accept: application/vnd.github+json" \
|
-H "Accept: application/vnd.github+json" \
|
||||||
-H "Authorization: Bearer ${{ secrets.TOKEN }}" \
|
-H "Authorization: Bearer ${{ secrets.TOKEN }}" \
|
||||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||||
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=test-data_google"
|
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=test-data_google"
|
||||||
|
|
||||||
- name: Очистка кэша Twitter
|
- name: Очистка кэша Twitter
|
||||||
run: |
|
run: |
|
||||||
curl -L \
|
curl -L \
|
||||||
-X DELETE \
|
-X DELETE \
|
||||||
-H "Accept: application/vnd.github+json" \
|
-H "Accept: application/vnd.github+json" \
|
||||||
-H "Authorization: Bearer ${{ secrets.TOKEN }}" \
|
-H "Authorization: Bearer ${{ secrets.TOKEN }}" \
|
||||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||||
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=test-data_new"
|
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=test-data_new"
|
||||||
|
Loading…
Reference in New Issue
Block a user