⬆️ chore(ci): aggiorna setup-node, cache, setup-python e build-push-action
- setup-node v4 → v7, con package-manager-cache: false: la cache npm resta allo step actions/cache - actions/cache v4 → v6 - setup-python v5.2.0 → v7 - docker/build-push-action v6 → v7 - upload-artifact resta a v3: dalla v4 su Gitea dà GHESNotSupportedError Fixes #20 @1h30m
This commit is contained in:
1 parent
8e74f98f93
commit
0f205b954a
21 files changed
+84
-48
No files matched your search
@@ -46,9 +46,12 @@ jobs:
|
||||
uses: https://github.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v4
|
||||
uses: https://github.com/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
# da solo se package.json ha packageManager, e la duplicherebbe.
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Setup Java
|
||||
uses: https://github.com/actions/setup-java@v4
|
||||
@@ -60,7 +63,7 @@ jobs:
|
||||
uses: https://github.com/android-actions/setup-android@v4
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
@@ -68,7 +71,7 @@ jobs:
|
||||
${{ runner.os }}-node-
|
||||
|
||||
- name: Cache Gradle
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
|
||||
@@ -46,9 +46,12 @@ jobs:
|
||||
uses: https://gitea.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://gitea.com/actions/setup-node@v4
|
||||
uses: https://gitea.com/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
# da solo se package.json ha packageManager, e la duplicherebbe.
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Setup Java
|
||||
uses: https://github.com/actions/setup-java@v4
|
||||
@@ -60,7 +63,7 @@ jobs:
|
||||
uses: https://github.com/android-actions/setup-android@v4
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
@@ -68,7 +71,7 @@ jobs:
|
||||
${{ runner.os }}-node-
|
||||
|
||||
- name: Cache Gradle
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
|
||||
@@ -23,12 +23,15 @@ jobs:
|
||||
uses: https://github.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v4
|
||||
uses: https://github.com/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
# da solo se package.json ha packageManager, e la duplicherebbe.
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -23,12 +23,15 @@ jobs:
|
||||
uses: https://gitea.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://gitea.com/actions/setup-node@v4
|
||||
uses: https://gitea.com/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
# da solo se package.json ha packageManager, e la duplicherebbe.
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -23,12 +23,15 @@ jobs:
|
||||
uses: https://github.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v4
|
||||
uses: https://github.com/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
# da solo se package.json ha packageManager, e la duplicherebbe.
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -23,12 +23,15 @@ jobs:
|
||||
uses: https://gitea.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://gitea.com/actions/setup-node@v4
|
||||
uses: https://gitea.com/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
# da solo se package.json ha packageManager, e la duplicherebbe.
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -21,16 +21,19 @@ jobs:
|
||||
uses: https://github.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v4
|
||||
uses: https://github.com/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
# da solo se package.json ha packageManager, e la duplicherebbe.
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Upgrade npm
|
||||
if: inputs.npm-version != ''
|
||||
run: npm install -g npm@${{ inputs.npm-version }}
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
@@ -79,7 +82,7 @@ jobs:
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: https://github.com/docker/build-push-action@v6
|
||||
uses: https://github.com/docker/build-push-action@v7
|
||||
with:
|
||||
push: true
|
||||
context: .
|
||||
|
||||
@@ -21,16 +21,19 @@ jobs:
|
||||
uses: https://gitea.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://gitea.com/actions/setup-node@v4
|
||||
uses: https://gitea.com/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
# da solo se package.json ha packageManager, e la duplicherebbe.
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Upgrade npm
|
||||
if: inputs.npm-version != ''
|
||||
run: npm install -g npm@${{ inputs.npm-version }}
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
@@ -79,7 +82,7 @@ jobs:
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: https://gitea.com/docker/build-push-action@v6
|
||||
uses: https://gitea.com/docker/build-push-action@v7
|
||||
with:
|
||||
push: true
|
||||
context: .
|
||||
|
||||
@@ -22,12 +22,15 @@ jobs:
|
||||
uses: https://github.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v4
|
||||
uses: https://github.com/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
# da solo se package.json ha packageManager, e la duplicherebbe.
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -22,12 +22,15 @@ jobs:
|
||||
uses: https://gitea.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://gitea.com/actions/setup-node@v4
|
||||
uses: https://gitea.com/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
# da solo se package.json ha packageManager, e la duplicherebbe.
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -25,12 +25,12 @@ jobs:
|
||||
uses: https://github.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v5.2.0
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
uses: https://gitea.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v5.2.0
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
@@ -67,7 +67,7 @@ jobs:
|
||||
echo "Registry PyPI di Gitea aggiunto come indice extra (credenziali da netrc)."
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
|
||||
@@ -25,12 +25,12 @@ jobs:
|
||||
uses: https://github.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v5.2.0
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
uses: https://gitea.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v5.2.0
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
@@ -67,7 +67,7 @@ jobs:
|
||||
echo "Registry PyPI di Gitea aggiunto come indice extra (credenziali da netrc)."
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
|
||||
@@ -33,12 +33,12 @@ jobs:
|
||||
uses: https://github.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v5.2.0
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
@@ -107,7 +107,7 @@ jobs:
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: https://github.com/docker/build-push-action@v6
|
||||
uses: https://github.com/docker/build-push-action@v7
|
||||
with:
|
||||
push: true
|
||||
context: ${{ inputs.working-directory }}
|
||||
|
||||
@@ -42,7 +42,7 @@ jobs:
|
||||
uses: https://gitea.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v5.2.0
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
@@ -86,7 +86,7 @@ jobs:
|
||||
echo "Registry PyPI di Gitea aggiunto come indice extra (credenziali da netrc)."
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
@@ -155,7 +155,7 @@ jobs:
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: https://gitea.com/docker/build-push-action@v6
|
||||
uses: https://gitea.com/docker/build-push-action@v7
|
||||
with:
|
||||
push: true
|
||||
context: ${{ inputs.working-directory }}
|
||||
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
uses: https://gitea.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v5.2.0
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
@@ -125,7 +125,7 @@ jobs:
|
||||
esac
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
|
||||
@@ -26,12 +26,12 @@ jobs:
|
||||
uses: https://github.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v5.2.0
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
|
||||
@@ -35,7 +35,7 @@ jobs:
|
||||
uses: https://gitea.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v5.2.0
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
@@ -79,7 +79,7 @@ jobs:
|
||||
echo "Registry PyPI di Gitea aggiunto come indice extra (credenziali da netrc)."
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
|
||||
@@ -25,16 +25,19 @@ jobs:
|
||||
uses: https://github.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v4
|
||||
uses: https://github.com/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
# da solo se package.json ha packageManager, e la duplicherebbe.
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Upgrade npm
|
||||
if: inputs.npm-version != ''
|
||||
run: npm install -g npm@${{ inputs.npm-version }}
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -32,16 +32,19 @@ jobs:
|
||||
uses: https://gitea.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://gitea.com/actions/setup-node@v4
|
||||
uses: https://gitea.com/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
# da solo se package.json ha packageManager, e la duplicherebbe.
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Upgrade npm
|
||||
if: inputs.npm-version != ''
|
||||
run: npm install -g npm@${{ inputs.npm-version }}
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
Reference in new issue
Block a user