diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 479f7df..7a5541e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,8 +6,8 @@ jobs: strategy: fail-fast: false matrix: - node-version: ['19', '18', '16', '14'] - os: ['windows-latest', 'ubuntu-latest', 'macos-13', 'macos-latest'] + node-version: ['22', '21', '20', '18', '16', '14'] + os: ['windows-latest', 'ubuntu-24.04', 'ubuntu-latest', 'macos-latest', 'macos-13'] exclude: # exclude node14 test on arm due to nodejs 14 release is not available for darwin-arm - node-version: '14' @@ -63,7 +63,7 @@ jobs: sudo apt-get update sudo apt-get install -y build-essential libicu-dev libcurl4-openssl-dev libldap2-dev libidn11-dev - - name: Run Test (Windows) + - name: Run Test run: npm test test-docker: @@ -82,10 +82,10 @@ jobs: ${{ runner.os }}-buildx- - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Docker Build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: tags: todogroup/repolinter:latest load: true @@ -102,11 +102,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Semantic Release id: semantic - uses: cycjimmy/semantic-release-action@v2 + uses: cycjimmy/semantic-release-action@v4 with: extra_plugins: | @semantic-release/git @@ -117,7 +117,7 @@ jobs: - name: Cache Docker layers if: steps.semantic.outputs.new_release_published == 'true' - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -130,7 +130,7 @@ jobs: - name: Login to GitHub Container Registry if: steps.semantic.outputs.new_release_published == 'true' - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -139,13 +139,13 @@ jobs: - name: Gather Docker Labels if: steps.semantic.outputs.new_release_published == 'true' id: docker_meta - uses: crazy-max/ghaction-docker-meta@v2 + uses: crazy-max/ghaction-docker-meta@v5 with: images: ghcr.io/${{ github.repository }} - name: Build and Push to GitHub Container Registry if: steps.semantic.outputs.new_release_published == 'true' - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . push: true diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 62732aa..983f669 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. @@ -38,7 +38,7 @@ jobs: # 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. @@ -49,7 +49,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 @@ -63,4 +63,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/docs.yaml b/.github/workflows/docs.yaml index 8de56b7..4bbe400 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -10,18 +10,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: persist-credentials: false - name: Setup Node - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' - name: Cache NPM id: cache-node-modules - uses: actions/cache@v2 + uses: actions/cache@v4 env: cache-name: node-modules with: @@ -37,7 +37,7 @@ jobs: run: npm run apidoc - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@4.1.0 + uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages # The branch the action should deploy to. folder: apidoc # The folder the action should deploy. diff --git a/.github/workflows/repolinter.yaml b/.github/workflows/repolinter.yaml index ea04f89..78f7882 100644 --- a/.github/workflows/repolinter.yaml +++ b/.github/workflows/repolinter.yaml @@ -5,7 +5,7 @@ jobs: repolinter: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: todogroup/repolinter-action@v1 with: config_file: .github/repolinter.yaml diff --git a/.tool-versions b/.tool-versions index f6efb75..c2bc75a 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -nodejs 18.17.1 +nodejs 20.16.0