From e4bb7a5d62ae4a7e21bd57c0376e21e3ec1d1298 Mon Sep 17 00:00:00 2001 From: gusthoff Date: Sun, 18 Aug 2024 14:02:04 +0200 Subject: [PATCH 1/2] GitHub actions: updating version of actions --- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/sphinx-books-tests.js.yml | 8 ++++---- .github/workflows/sphinx-content-tests.js.yml | 8 ++++---- .github/workflows/sphinx-plugin-tests.js.yml | 4 ++-- .github/workflows/typescript-tests.js.yml | 8 ++++---- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 00bfa78fa..b06f6996a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -28,11 +28,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -43,7 +43,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -57,4 +57,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/sphinx-books-tests.js.yml b/.github/workflows/sphinx-books-tests.js.yml index 419fe528b..2c1f55177 100644 --- a/.github/workflows/sphinx-books-tests.js.yml +++ b/.github/workflows/sphinx-books-tests.js.yml @@ -17,16 +17,16 @@ jobs: node-version: [20.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Enable Corepack run: corepack enable - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'yarn' diff --git a/.github/workflows/sphinx-content-tests.js.yml b/.github/workflows/sphinx-content-tests.js.yml index aaf08bd93..b442ef3c7 100644 --- a/.github/workflows/sphinx-content-tests.js.yml +++ b/.github/workflows/sphinx-content-tests.js.yml @@ -17,16 +17,16 @@ jobs: node-version: [20.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Enable Corepack run: corepack enable - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'yarn' diff --git a/.github/workflows/sphinx-plugin-tests.js.yml b/.github/workflows/sphinx-plugin-tests.js.yml index 5661d1730..22f822ee6 100644 --- a/.github/workflows/sphinx-plugin-tests.js.yml +++ b/.github/workflows/sphinx-plugin-tests.js.yml @@ -23,9 +23,9 @@ jobs: python-version: ['3.11'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install OS Deps diff --git a/.github/workflows/typescript-tests.js.yml b/.github/workflows/typescript-tests.js.yml index 3a8311ebd..eddda6579 100644 --- a/.github/workflows/typescript-tests.js.yml +++ b/.github/workflows/typescript-tests.js.yml @@ -24,16 +24,16 @@ jobs: node-version: [20.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Enable Corepack run: corepack enable - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'yarn' From 95da0c529ff9e90d37956eefc4ad78355566caf3 Mon Sep 17 00:00:00 2001 From: gusthoff Date: Sun, 18 Aug 2024 14:02:30 +0200 Subject: [PATCH 2/2] GitHub actions: add cache dependency path for node action --- .github/workflows/sphinx-books-tests.js.yml | 1 + .github/workflows/sphinx-content-tests.js.yml | 1 + .github/workflows/typescript-tests.js.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/sphinx-books-tests.js.yml b/.github/workflows/sphinx-books-tests.js.yml index 2c1f55177..7e55bf3bc 100644 --- a/.github/workflows/sphinx-books-tests.js.yml +++ b/.github/workflows/sphinx-books-tests.js.yml @@ -30,6 +30,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'yarn' + cache-dependency-path: 'frontend' - name: Install OS Deps run: | sudo apt-get update && \ diff --git a/.github/workflows/sphinx-content-tests.js.yml b/.github/workflows/sphinx-content-tests.js.yml index b442ef3c7..df5318433 100644 --- a/.github/workflows/sphinx-content-tests.js.yml +++ b/.github/workflows/sphinx-content-tests.js.yml @@ -30,6 +30,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'yarn' + cache-dependency-path: 'frontend' - name: Install OS Deps run: | sudo apt-get update diff --git a/.github/workflows/typescript-tests.js.yml b/.github/workflows/typescript-tests.js.yml index eddda6579..87345f4c2 100644 --- a/.github/workflows/typescript-tests.js.yml +++ b/.github/workflows/typescript-tests.js.yml @@ -37,6 +37,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'yarn' + cache-dependency-path: 'frontend' - name: Install OS Deps run: | sudo apt-get update && \