Skip to content

Commit

Permalink
feature/update-node-and-actions (#328)
Browse files Browse the repository at this point in the history
* Update ci.yaml

Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>

* Update codeql-analysis.yml

Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>

* Update docs.yaml

Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>

* Update repolinter.yaml

Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>

* Update .tool-versions

Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>

* Update CODEOWNERS

Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>

* Update CODEOWNERS

Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>

* Update CODEOWNERS

Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>

* Update ci.yaml

Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>

* Update ci.yaml

Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>

* Update ci.yaml

Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>

---------

Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>
  • Loading branch information
scottschreckengaust committed Jul 30, 2024
1 parent a2f8731 commit 9e89eec
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ 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.
fetch-depth: 2

# 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.
Expand All @@ -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
Expand All @@ -63,4 +63,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
10 changes: 5 additions & 5 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.
2 changes: 1 addition & 1 deletion .github/workflows/repolinter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 18.17.1
nodejs 20.16.0

0 comments on commit 9e89eec

Please sign in to comment.