Browse Source

update workfow actions from v2 to v4

Signed-off-by: ming.tang <ming.tang@daocloud.io>
tags/v0.7.0^2
ming.tang 8 months ago
parent
commit
67166a576f
1 changed files with 18 additions and 18 deletions
  1. +18
    -18
      .github/workflows/main.yaml

+ 18
- 18
.github/workflows/main.yaml View File

@@ -19,17 +19,17 @@ jobs:


steps: steps:
- name: Install Go - name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with: with:
go-version: 1.22.9 go-version: 1.22.9


- name: Checkout code - name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
path: ${{ env.CODE_DIR }} path: ${{ env.CODE_DIR }}


- uses: actions/cache@v2
- uses: actions/cache@v4
with: with:
path: ~/go/pkg/mod path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@@ -55,17 +55,17 @@ jobs:
name: build gm and lc name: build gm and lc
steps: steps:
- name: Install Go - name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with: with:
go-version: 1.22.9 go-version: 1.22.9


- uses: actions/cache@v2
- uses: actions/cache@v4
with: with:
path: ~/go/pkg/mod path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}


- name: Checkout code - name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0


@@ -76,11 +76,11 @@ jobs:
name: 'Unit test, integration test edge (noop now)' name: 'Unit test, integration test edge (noop now)'
steps: steps:
- name: Install Go - name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with: with:
go-version: 1.22.9 go-version: 1.22.9


- uses: actions/cache@v2
- uses: actions/cache@v4
with: with:
path: ~/go/pkg/mod path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@@ -89,7 +89,7 @@ jobs:
run: ': to be added' run: ': to be added'


- name: Checkout code - name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0


@@ -100,11 +100,11 @@ jobs:
name: 'E2e test' name: 'E2e test'
steps: steps:
- name: Install Go - name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with: with:
go-version: 1.22.9 go-version: 1.22.9


- uses: actions/cache@v2
- uses: actions/cache@v4
with: with:
path: ~/go/pkg/mod path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@@ -124,7 +124,7 @@ jobs:




- name: Checkout code - name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0


@@ -135,17 +135,17 @@ jobs:
name: docker image build for gm/lc name: docker image build for gm/lc
steps: steps:
- name: Install Go - name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with: with:
go-version: 1.22.9 go-version: 1.22.9


- uses: actions/cache@v2
- uses: actions/cache@v4
with: with:
path: ~/go/pkg/mod path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}


- name: Checkout code - name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0


@@ -156,17 +156,17 @@ jobs:
name: docker cross build images for gm/lc/kb name: docker cross build images for gm/lc/kb
steps: steps:
- name: Install Go - name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with: with:
go-version: 1.22.9 go-version: 1.22.9


- uses: actions/cache@v2
- uses: actions/cache@v4
with: with:
path: ~/go/pkg/mod path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}


- name: Checkout code - name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0




Loading…
Cancel
Save