From 2746c043b6fb97022797e1c25c8750925001808f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A5=96=E5=BB=BA?= Date: Thu, 6 Jul 2023 10:08:20 +0800 Subject: [PATCH] ci: fix go cache key --- .github/workflows/scheduled-e2e.yaml | 60 ++++++++++++++-------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/scheduled-e2e.yaml b/.github/workflows/scheduled-e2e.yaml index 4928c5074b82..9ece56aa616f 100644 --- a/.github/workflows/scheduled-e2e.yaml +++ b/.github/workflows/scheduled-e2e.yaml @@ -703,16 +703,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Create branch directory - run: mkdir -p test/e2e/kube-ovn/branches/${{ matrix.branch }} - - - name: Check out branch - uses: actions/checkout@v3 - with: - ref: ${{ matrix.branch }} - fetch-depth: 1 - path: test/e2e/kube-ovn/branches/${{ matrix.branch }} - - uses: actions/setup-go@v4 with: go-version-file: go.mod @@ -731,6 +721,16 @@ jobs: key: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86- + - name: Create branch directory + run: mkdir -p test/e2e/kube-ovn/branches/${{ matrix.branch }} + + - name: Check out branch + uses: actions/checkout@v3 + with: + ref: ${{ matrix.branch }} + fetch-depth: 1 + path: test/e2e/kube-ovn/branches/${{ matrix.branch }} + - name: Install kind uses: helm/kind-action@v1.7.0 with: @@ -773,16 +773,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Create branch directory - run: mkdir -p test/e2e/kube-ovn/branches/${{ matrix.branch }} - - - name: Check out branch - uses: actions/checkout@v3 - with: - ref: ${{ matrix.branch }} - fetch-depth: 1 - path: test/e2e/kube-ovn/branches/${{ matrix.branch }} - - uses: actions/setup-go@v4 with: go-version-file: go.mod @@ -801,6 +791,16 @@ jobs: key: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86- + - name: Create branch directory + run: mkdir -p test/e2e/kube-ovn/branches/${{ matrix.branch }} + + - name: Check out branch + uses: actions/checkout@v3 + with: + ref: ${{ matrix.branch }} + fetch-depth: 1 + path: test/e2e/kube-ovn/branches/${{ matrix.branch }} + - name: Install kind uses: helm/kind-action@v1.7.0 with: @@ -842,16 +842,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Create branch directory - run: mkdir -p test/e2e/kube-ovn/branches/${{ matrix.branch }} - - - name: Check out branch - uses: actions/checkout@v3 - with: - ref: ${{ matrix.branch }} - fetch-depth: 1 - path: test/e2e/kube-ovn/branches/${{ matrix.branch }} - - uses: actions/setup-go@v4 with: go-version-file: go.mod @@ -870,6 +860,16 @@ jobs: key: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86- + - name: Create branch directory + run: mkdir -p test/e2e/kube-ovn/branches/${{ matrix.branch }} + + - name: Check out branch + uses: actions/checkout@v3 + with: + ref: ${{ matrix.branch }} + fetch-depth: 1 + path: test/e2e/kube-ovn/branches/${{ matrix.branch }} + - name: Install kind uses: helm/kind-action@v1.7.0 with: