Skip to content

Commit

Permalink
ci: fix default branch test (#2369)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian authored Feb 22, 2023
1 parent 4a0829a commit c061ae1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ concurrency:
cancel-in-progress: true

env:
GOSEC_VERSION: '2.14.0'
GOSEC_VERSION: '2.15.0'

jobs:
filter:
Expand Down
41 changes: 21 additions & 20 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -227,6 +227,7 @@ jobs:
restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-

- run: make e2e-compile
working-directory: ${{ env.E2E_DIR }}

k8s-conformance-e2e:
name: Kubernetes Conformance E2E
Expand All @@ -249,11 +250,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -341,11 +342,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -429,11 +430,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -515,11 +516,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -580,11 +581,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -661,11 +662,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -885,11 +886,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -1008,11 +1009,11 @@ jobs:
version: '${{ env.HELM_VERSION }}'

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -1104,11 +1105,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down

0 comments on commit c061ae1

Please sign in to comment.