From 8b516e9333caaf52f523124a8c0d24e5b87ac03b Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sat, 5 Nov 2022 15:50:44 +0000 Subject: [PATCH] ci: update github actions (#1494) --- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/nodejs.yml | 26 ++++++++++++++------------ .github/workflows/release.yml | 4 ++-- 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 198b873da..a95926aea 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -39,11 +39,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -54,7 +54,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@v2 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -68,4 +68,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 6cbef0214..e56102894 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -15,9 +15,11 @@ jobs: name: Linting runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Use Node.js 14 - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: 14 @@ -26,7 +28,7 @@ jobs: run: | echo "::set-output name=dir::$(npm config get cache)" - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ${{ steps.npm-cache.outputs.dir }} key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} @@ -76,10 +78,10 @@ jobs: SA_PASSWORD: "yourStrong(!)Password" steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} @@ -113,7 +115,7 @@ jobs: run: | echo "::set-output name=dir::$(npm config get cache)" - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ${{ steps.npm-cache.outputs.dir }} key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} @@ -182,9 +184,9 @@ jobs: if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }} steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Use Node.js 14 - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: 14 @@ -193,7 +195,7 @@ jobs: run: | echo "::set-output name=dir::$(npm config get cache)" - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ${{ steps.npm-cache.outputs.dir }} key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} @@ -292,9 +294,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Use Node.js 14 - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: 14 @@ -303,7 +305,7 @@ jobs: run: | echo "::set-output name=dir::$(npm config get cache)" - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ${{ steps.npm-cache.outputs.dir }} key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a561321d4..bd9bf298e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,9 +9,9 @@ jobs: name: Release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Use Node.js 14 - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: 14