From 81151bf374c7a07191a9ae6b73cc0ca558f6011c Mon Sep 17 00:00:00 2001 From: ConorC117 Date: Wed, 10 Apr 2024 16:01:06 +0100 Subject: [PATCH] ci: update github actions to use node.js 20 (#47) Update deprecated Node.js 16 actions in commitlint.yml and go.yml to use Node.js 20. Signed-off-by: ccowman --- .github/workflows/commitlint.yml | 4 ++-- .github/workflows/go.yml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 614b887..fddd6a0 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -7,11 +7,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: "lts/*" - name: Print versions diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 389fd25..8d0e1e1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.19' @@ -27,14 +27,14 @@ jobs: run: make test - name: Upload Go coverage results - HTML - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: go-coverage + name: go-coverage-html path: coverage.html - name: Upload Go coverage results - txt - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: go-coverage + name: go-coverage-txt path: coverage.txt