Sfoglia il codice sorgente

actions: Update setup-go and checkout action versions

The older versions we use are based on a deprecated nodejs version and
throwing warnings

Signed-off-by: Anatole Denis <anatole@unverle.fr>
Anatole Denis 1 anno fa
parent
commit
b6ac910998
3 ha cambiato i file con 18 aggiunte e 17 eliminazioni
  1. 6 6
      .github/workflows/build.yml
  2. 4 1
      .github/workflows/lint.yml
  3. 8 10
      .github/workflows/tests.yml

+ 6 - 6
.github/workflows/build.yml

@@ -7,13 +7,13 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go: ['1.19', '1.20']
+        go: ['1.20', '1.21']
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
         with:
           # clone in the gopath
           path: src/github.com/${{ github.repository }}
-      - uses: actions/setup-go@v2
+      - uses: actions/setup-go@v5
         with:
           stable: false
           go-version: ${{ matrix.go }}
@@ -32,13 +32,13 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go: ['1.19', '1.20']
+        go: ['1.20', '1.21']
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
         with:
           # clone in the gopath
           path: src/github.com/${{ github.repository }}
-      - uses: actions/setup-go@v2
+      - uses: actions/setup-go@v5
         with:
           stable: false
           go-version: ${{ matrix.go }}

+ 4 - 1
.github/workflows/lint.yml

@@ -16,7 +16,7 @@ jobs:
       - uses: actions/checkout@v4
       - uses: actions/setup-go@v5
         with:
-          go-version: '1.21'
+          go-version: 'stable'
       - name: golangci-lint
         uses: golangci/golangci-lint-action@v4
         with:
@@ -33,6 +33,9 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v4
+      - uses: actions/setup-go@v5
+        with: 
+          go-version: 'stable'
       - name: check license headers
         run: |
           set -exu

+ 8 - 10
.github/workflows/tests.yml

@@ -7,16 +7,15 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go: ['1.19', '1.20']
+        go: ['1.20', '1.21']
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
         with:
           # clone in the gopath
           path: src/github.com/${{ github.repository }}
           fetch-depth: 0
-      - uses: actions/setup-go@v2
+      - uses: actions/setup-go@v5
         with:
-          stable: false
           go-version: ${{ matrix.go }}
       - run: |
           # `env` doesn't allow for variable expansion, so we use the GITHUB_ENV
@@ -36,7 +35,7 @@ jobs:
               fi
           done
       - name: report coverage to codecov
-        uses: codecov/codecov-action@v3
+        uses: codecov/codecov-action@v4
         with:
           files: coverage.txt
           flags: unittests
@@ -46,16 +45,15 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go: ['1.19', '1.20']
+        go: ['1.20', '1.21']
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
         with:
           # clone in the gopath
           path: src/github.com/${{ github.repository }}
           fetch-depth: 0
-      - uses: actions/setup-go@v2
+      - uses: actions/setup-go@v5
         with:
-          stable: false
           go-version: ${{ matrix.go }}
       - run: |
           # `env` doesn't allow for variable expansion, so we use the GITHUB_ENV
@@ -82,7 +80,7 @@ jobs:
               fi
           done
       - name: report coverage to codecov
-        uses: codecov/codecov-action@v3
+        uses: codecov/codecov-action@v4
         with:
           files: coverage.txt
           flags: integtests