From a6cc2ab3927e32b334a3eee6471c1e97b468ad08 Mon Sep 17 00:00:00 2001 From: Alessandro Pellegrini Date: Mon, 22 Jul 2024 18:06:31 +0200 Subject: [PATCH] Align CI scripts to new actions versions Many actions were using outdated dependencies, which I am trying to update with this commit. Signed-off-by: Alessandro Pellegrini --- .github/workflows/build_and_test.yml | 2 +- .github/workflows/codacy-analysis.yml | 4 ++-- .github/workflows/code_coverage.yml | 5 +++-- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/doc_coverage.yml | 8 ++++---- .github/workflows/reuse_check.yml | 2 +- .github/workflows/website.yml | 29 --------------------------- 7 files changed, 14 insertions(+), 42 deletions(-) delete mode 100644 .github/workflows/website.yml diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 6dd00408..d2fc95e0 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -29,7 +29,7 @@ jobs: type: Release steps: - name: Checkpout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize Environment uses: ROOT-Sim/ci-actions/init@v1.2 - name: Build & Test diff --git a/.github/workflows/codacy-analysis.yml b/.github/workflows/codacy-analysis.yml index 7a912e59..992a25ac 100644 --- a/.github/workflows/codacy-analysis.yml +++ b/.github/workflows/codacy-analysis.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run Codacy Analysis CLI uses: codacy/codacy-analysis-cli-action@v4.1.0 with: @@ -31,6 +31,6 @@ jobs: gh-code-scanning-compat: true max-allowed-issues: 2147483647 - name: Upload SARIF results file - uses: github/codeql-action/upload-sarif@v2 + uses: github/codeql-action/upload-sarif@v3 with: sarif_file: results.sarif diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index f9c76479..62a2e8bc 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Fetch ROOT-Sim repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize Environment uses: ROOT-Sim/ci-actions/init@v1.2 - name: Build & Test @@ -25,7 +25,8 @@ jobs: - name: Generate coverage report run: find ${{ runner.workspace }}/build/ -name "*.gcda" -exec gcov -abcfu {} \; - name: Upload coverage report - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v with: fail_ci_if_error: true verbose: true + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e11dfa12..0f8dd80c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -25,9 +25,9 @@ jobs: language: [ 'cpp', 'python' ] steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} - name: Initialize Environment @@ -40,4 +40,4 @@ jobs: build-type: Debug run-test: false - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/doc_coverage.yml b/.github/workflows/doc_coverage.yml index d8c038e8..814966f8 100644 --- a/.github/workflows/doc_coverage.yml +++ b/.github/workflows/doc_coverage.yml @@ -11,8 +11,8 @@ jobs: doc_coverage: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 - name: Initialize Environment uses: ROOT-Sim/ci-actions/init@v1.2 - name: Generate Documentation @@ -24,11 +24,11 @@ jobs: with: build-path: docs - name: Comment PR - uses: actions/github-script@v3 + uses: actions/github-script@v7 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, diff --git a/.github/workflows/reuse_check.yml b/.github/workflows/reuse_check.yml index f0832d79..40ebf4c1 100644 --- a/.github/workflows/reuse_check.yml +++ b/.github/workflows/reuse_check.yml @@ -11,6 +11,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkpout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: REUSE check uses: ROOT-Sim/ci-actions/reuse-check@v1.2 diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml deleted file mode 100644 index 75eaa1d4..00000000 --- a/.github/workflows/website.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Documentation Deployment - -permissions: - contents: write - -on: - push: - branches: - - master - - develop - -jobs: - update-website: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v1 - - name: Initialize Environment - uses: ROOT-Sim/ci-actions/init@v1.2 - - name: Generate Documentation - uses: ROOT-Sim/ci-actions/docs@v1.2 - - name: Documentation Coverage - uses: ROOT-Sim/ci-actions/docs-coverage@v1.2 - with: - build-path: docs - - name: Website Deployment - uses: ROOT-Sim/ci-actions/website-deploy@v1.2 - with: - build-path: docs