From 6c7bd48830fe372877288e38546f42e3ee38abb4 Mon Sep 17 00:00:00 2001 From: Peter Harrison Date: Mon, 19 Feb 2024 10:13:49 -0800 Subject: [PATCH] Upgraded github actions to the latest versions --- .github/workflows/codeql-codescan.yml | 2 +- .github/workflows/pull-request.yml | 14 +++++++------- .github/workflows/push.yml | 16 ++++++++-------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/codeql-codescan.yml b/.github/workflows/codeql-codescan.yml index a5cc559e65..e9eb5c5d49 100644 --- a/.github/workflows/codeql-codescan.yml +++ b/.github/workflows/codeql-codescan.yml @@ -28,7 +28,7 @@ jobs: language: [ 'javascript' ] steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index b6d7c42a89..eec15f2817 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Dependencies run: npm install @@ -68,10 +68,10 @@ jobs: # needs: Code-Quality-Checks steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.9 @@ -85,7 +85,7 @@ jobs: needs: [Code-Quality-Checks] steps: - name: Checkout the Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Dependencies run: npm install @@ -107,7 +107,7 @@ jobs: done - name: Present and Upload coverage to Codecov as ${{env.CODECOV_UNIQUE_NAME}} - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} verbose: true @@ -125,10 +125,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '20.x' diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index b73c283aaf..d9f70f63a7 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -26,14 +26,14 @@ jobs: matrix: node-version: [20.x] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Cache node modules id: cache-npm - uses: actions/cache@v3 + uses: actions/cache@v4 env: cache-name: cache-node-modules with: @@ -51,7 +51,7 @@ jobs: run: npm install - run: npm run test -- --watchAll=false --coverage - name: Present and upload coverage to Codecov as ${{env.CODECOV_UNIQUE_NAME}} - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} verbose: true @@ -63,7 +63,7 @@ jobs: if: github.ref == 'refs/heads/develop' steps: - name: Checkout the Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # with: # ref: develop @@ -77,7 +77,7 @@ jobs: - name: Restore node_modules from cache id: cache-npm - uses: actions/cache@v3 + uses: actions/cache@v4 env: cache-name: cache-node-modules with: @@ -154,7 +154,7 @@ jobs: needs: Generate-Documentation steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false token: ${{ secrets.TALAWA_DOCS_SYNC }} @@ -170,7 +170,7 @@ jobs: if: github.ref == 'refs/heads/automated-docs' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dmnemec/copy_file_to_another_repo_action@v1.1.1 env: API_TOKEN_GITHUB: ${{secrets.TALAWA_DOCS_SYNC}}