Merge pull request #883 from nextcloud/maintenance/cleanup-actions

Use NPM folders from internal cache
This commit is contained in:
Christian 2022-01-17 16:35:07 +01:00 коммит произвёл GitHub
Родитель 721af3a621 36af3ddc59
Коммит 10b7f489b9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 44 добавлений и 7 удалений

16
.github/workflows/deploy-appstore.yml поставляемый
Просмотреть файл

@ -26,7 +26,21 @@ jobs:
path: cookbook
ref: ${{ github.ref }}
fetch-depth: 0
- name: Get the date
id: date
run: echo "::set-output name=date::$(date +%Y-%m-%d)"
- name: Use cache for NPM
uses: actions/cache@v2.1.7
with:
path: |
~/.npm
cookbook/node_modules
key: ${{ runner.os }}-node-${{ steps.date.outputs.date }}-${{ hashFiles('package.json') }}
restore-keys: |
${{ runner.os }}-node-${{ steps.date.outputs.date }}-
${{ runner.os }}-node-
- name: Bump the version
id: bump
run: ./.github/actions/deploy/create-version.sh

33
.github/workflows/tests.yml поставляемый
Просмотреть файл

@ -16,9 +16,20 @@ jobs:
steps:
- name: Checkout the project
uses: actions/checkout@v2
- name: Make sure the appinfo is built
shell: bash
run: make appinfo/info.xml
- name: Get the date
id: date
run: echo "::set-output name=date::$(date +%Y-%m-%d)"
- name: Cache NPM cache
uses: actions/cache@v2.1.7
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-node-${{ steps.date.outputs.date }}-${{ hashFiles('package.json') }}
restore-keys: |
${{ runner.os }}-node-${{ steps.date.outputs.date }}-
${{ runner.os }}-node-
- name: Get PHP version
shell: bash
run: php -v
@ -295,9 +306,19 @@ jobs:
- name: Checkout the app
uses: actions/checkout@v2
- name: Ensure the appinfo is built
shell: bash
run: make appinfo/info.xml
- name: Get the date
id: date
run: echo "::set-output name=date::$(date +%Y-%m-%d)"
- name: Use cache for NPM
uses: actions/cache@v2.1.7
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-node-${{ steps.date.outputs.date }}-${{ hashFiles('package.json') }}
restore-keys: |
${{ runner.os }}-node-${{ steps.date.outputs.date }}-
${{ runner.os }}-node-
- name: Update NPM
shell: bash

Просмотреть файл

@ -7,6 +7,8 @@
[#879](https://github.com/nextcloud/cookbook/pull/879) @christianlupus
- Allow for multiline text in instructions
[#880](https://github.com/nextcloud/cookbook/pull/880) @christianlupus
- Usage of caches for NPM speedup
[#883](https://github.com/nextcloud/cookbook/pull/883) @christianlupus
## 0.9.9 - 2022-01-13