mirror of https://github.com/apache/nifi.git
NIFI-12753 Updated GitHub Actions to current versions
- Upgraded cache from 3 to 4 - Upgraded CodeQL from 2 to 3 - Upgraded Codecov from 3 to 4 - Upgraded upload-artifact from 3 to 4 - Upgraded stale from 6 to 9 This closes #8373 Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
3afeac6341
commit
4dfbe05641
|
@ -90,7 +90,7 @@ jobs:
|
|||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
- name: Cache Maven Modules
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.m2/repository
|
||||
|
@ -111,7 +111,7 @@ jobs:
|
|||
-P contrib-check
|
||||
-P include-new-ui
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
uses: github/codeql-action/init@v3
|
||||
with:
|
||||
languages: java
|
||||
- name: Maven Compile
|
||||
|
@ -122,7 +122,7 @@ jobs:
|
|||
${{ env.MAVEN_COMMAND }}
|
||||
${{ env.MAVEN_COMPILE_COMMAND }}
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
uses: github/codeql-action/analyze@v3
|
||||
|
||||
ubuntu-build-en:
|
||||
timeout-minutes: 120
|
||||
|
@ -138,7 +138,7 @@ jobs:
|
|||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
- name: Cache Node Modules
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.npm
|
||||
|
@ -170,11 +170,11 @@ jobs:
|
|||
-P python-unit-tests
|
||||
${{ env.MAVEN_PROJECTS }}
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
uses: codecov/codecov-action@v4
|
||||
with:
|
||||
files: ./nifi-code-coverage/target/site/jacoco-aggregate/jacoco.xml
|
||||
- name: Upload Test Reports
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: surefire-reports-ubuntu-21
|
||||
path: |
|
||||
|
@ -200,7 +200,7 @@ jobs:
|
|||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
- name: Cache Node Modules
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.npm
|
||||
|
@ -239,7 +239,7 @@ jobs:
|
|||
-P python-unit-tests
|
||||
${{ env.MAVEN_PROJECTS }}
|
||||
- name: Upload Test Reports
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: surefire-reports-macos-jp
|
||||
path: |
|
||||
|
@ -267,7 +267,7 @@ jobs:
|
|||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
- name: Cache Node Modules
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~\AppData\npm-cache
|
||||
|
@ -305,7 +305,7 @@ jobs:
|
|||
${{ env.MAVEN_BUILD_PROFILES }}
|
||||
${{ env.MAVEN_PROJECTS }}
|
||||
- name: Upload Test Reports
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: surefire-reports-windows-fr
|
||||
path: |
|
||||
|
|
|
@ -62,7 +62,7 @@ jobs:
|
|||
--activate-profiles dependency-check
|
||||
validate
|
||||
- name: Upload Report
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: dependency-check-report
|
||||
path: |
|
||||
|
|
|
@ -122,7 +122,7 @@ jobs:
|
|||
${{ env.MAVEN_BUILD_EXCLUDE_PROJECTS }}
|
||||
- name: Upload Troubleshooting Logs
|
||||
if: failure() || cancelled()
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ubuntu-21-failsafe-logs
|
||||
path: |
|
||||
|
|
|
@ -29,7 +29,7 @@ jobs:
|
|||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v6
|
||||
- uses: actions/stale@v9
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-pr-message: >
|
||||
|
|
|
@ -127,7 +127,7 @@ jobs:
|
|||
${{ env.MAVEN_PROJECTS }}
|
||||
- name: Upload Troubleshooting Logs
|
||||
if: failure() || cancelled()
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.os }}-${{ matrix.version }}-troubleshooting-logs
|
||||
path: |
|
||||
|
|
Loading…
Reference in New Issue