From 4df02bad710dc91504cb6f47021ae6ac60b133ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=B3=BD=E5=B9=B3?= Date: Thu, 14 Jul 2022 11:10:17 +0800 Subject: [PATCH] feat: fix actions version to root version --- .github/workflows/auto-build-rpm.yml | 6 +++--- .github/workflows/backend-cli-test.yml | 2 +- .github/workflows/backend-e2e-test.yml | 6 +++--- .github/workflows/backend-unit-test.yml | 4 ++-- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/deploy-with-docker.yml | 4 ++-- .github/workflows/frontend-e2e-test.yml | 8 ++++---- .github/workflows/frontend-plugin-e2e-test.yml | 8 ++++---- .github/workflows/go-lint.yml | 6 +++--- .github/workflows/lint.yml | 4 ++-- .github/workflows/make-build.yaml | 6 +++--- .github/workflows/release-test.yml | 2 +- .github/workflows/test-frontend-multiple-node-build.yml | 2 +- 13 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/auto-build-rpm.yml b/.github/workflows/auto-build-rpm.yml index 16b4d813fc..63ecc2e93e 100644 --- a/.github/workflows/auto-build-rpm.yml +++ b/.github/workflows/auto-build-rpm.yml @@ -12,7 +12,7 @@ on: jobs: auto_build_rpm: - name: auto build rpm package + name: Auto Build RPM package runs-on: ubuntu-latest services: @@ -29,9 +29,9 @@ jobs: - name: Check out code uses: actions/checkout@v3 - - uses: docker/setup-buildx-action@v1 + - uses: docker/setup-buildx-action@v2 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-apisixdashboard-${{ github.sha }} diff --git a/.github/workflows/backend-cli-test.yml b/.github/workflows/backend-cli-test.yml index 81f2b6749a..228dfa4b42 100644 --- a/.github/workflows/backend-cli-test.yml +++ b/.github/workflows/backend-cli-test.yml @@ -34,7 +34,7 @@ jobs: - name: cache etcd id: cache-etcd - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ${{ github.workspace }}/api/etcd-v${{ matrix.etcd }}-linux-amd64 diff --git a/.github/workflows/backend-e2e-test.yml b/.github/workflows/backend-e2e-test.yml index eb8c02dcca..a17a1d15d4 100644 --- a/.github/workflows/backend-e2e-test.yml +++ b/.github/workflows/backend-e2e-test.yml @@ -26,11 +26,11 @@ jobs: - name: setup go uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - - uses: docker/setup-buildx-action@v1 + - uses: docker/setup-buildx-action@v2 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-apisixdashboard-${{ github.sha }} diff --git a/.github/workflows/backend-unit-test.yml b/.github/workflows/backend-unit-test.yml index a582231d3e..ef9bdede5d 100644 --- a/.github/workflows/backend-unit-test.yml +++ b/.github/workflows/backend-unit-test.yml @@ -31,9 +31,9 @@ jobs: - name: setup go uses: actions/setup-go@v3 with: - go-version: "1.15" + go-version: "1.18" - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cache/go-build diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 126d05dd4c..541d1539f6 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -44,7 +44,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -69,4 +69,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/deploy-with-docker.yml b/.github/workflows/deploy-with-docker.yml index 9da71f4bd1..222fd5d233 100644 --- a/.github/workflows/deploy-with-docker.yml +++ b/.github/workflows/deploy-with-docker.yml @@ -25,9 +25,9 @@ jobs: with: submodules: recursive - - uses: docker/setup-buildx-action@v1 + - uses: docker/setup-buildx-action@v2 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-apisixdashboard-${{ github.sha }} diff --git a/.github/workflows/frontend-e2e-test.yml b/.github/workflows/frontend-e2e-test.yml index 218842f888..67705212ea 100644 --- a/.github/workflows/frontend-e2e-test.yml +++ b/.github/workflows/frontend-e2e-test.yml @@ -44,16 +44,16 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x cache: 'yarn' cache-dependency-path: web/yarn.lock - name: Setup golang environment uses: actions/setup-go@v3 with: - go-version: '1.15' + go-version: '1.18' - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cache/go-build @@ -69,7 +69,7 @@ jobs: nohup go run ./main.go & - name: Cache Cypress binary - uses: actions/cache@v2.1.6 + uses: actions/cache@v3 id: cypress-binary-cache with: path: '*/cypress/cache' diff --git a/.github/workflows/frontend-plugin-e2e-test.yml b/.github/workflows/frontend-plugin-e2e-test.yml index 08a818d2f4..485410d3af 100644 --- a/.github/workflows/frontend-plugin-e2e-test.yml +++ b/.github/workflows/frontend-plugin-e2e-test.yml @@ -42,16 +42,16 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x cache: 'yarn' cache-dependency-path: web/yarn.lock - name: Setup golang environment uses: actions/setup-go@v3 with: - go-version: '1.15' + go-version: '1.18' - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cache/go-build @@ -71,7 +71,7 @@ jobs: nohup go run ./main.go & - name: Cache Cypress binary - uses: actions/cache@v2.1.6 + uses: actions/cache@v3 id: cypress-binary-cache with: path: '*/cypress/cache' diff --git a/.github/workflows/go-lint.yml b/.github/workflows/go-lint.yml index c78940cc35..fd36206a28 100644 --- a/.github/workflows/go-lint.yml +++ b/.github/workflows/go-lint.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v3 - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: version: latest working-directory: api @@ -33,9 +33,9 @@ jobs: - name: setup go uses: actions/setup-go@v3 with: - go-version: '1.15' + go-version: '1.18' - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cache/go-build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 413bb73f36..334a66626d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: - name: 🚀 Use Node.js uses: actions/setup-node@v3 with: - node-version: '14.x' + node-version: '16.x' - run: npm install -g markdownlint-cli@0.25.0 - run: markdownlint '**/*.md' --ignore node_modules misspell: @@ -34,7 +34,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v3.1.1 + - uses: actions/setup-python@v4 with: python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified diff --git a/.github/workflows/make-build.yaml b/.github/workflows/make-build.yaml index 15730fdb20..9ebce94679 100644 --- a/.github/workflows/make-build.yaml +++ b/.github/workflows/make-build.yaml @@ -41,16 +41,16 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x cache: 'yarn' cache-dependency-path: web/yarn.lock - name: Setup golang environment uses: actions/setup-go@v3 with: - go-version: '1.15' + go-version: '1.18' - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cache/go-build diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index 3913004a4e..9e96e15e70 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -47,7 +47,7 @@ jobs: with: go-version: '1.15' - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cache/go-build diff --git a/.github/workflows/test-frontend-multiple-node-build.yml b/.github/workflows/test-frontend-multiple-node-build.yml index 0836519069..80ea05d0ce 100644 --- a/.github/workflows/test-frontend-multiple-node-build.yml +++ b/.github/workflows/test-frontend-multiple-node-build.yml @@ -25,7 +25,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.x] + node-version: [12.x, 14.x, 16.x] # Steps represent a sequence of tasks that will be executed as part of the job steps: