Skip to content

Commit 224b2b7

Browse files
committed
tmp: disable everything besides e2e
1 parent 11234a8 commit 224b2b7

File tree

1 file changed

+82
-82
lines changed

1 file changed

+82
-82
lines changed

.github/workflows/run-tests.yml

Lines changed: 82 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -8,93 +8,93 @@ on:
88
# remove CI_RUNNER_DEBUG_SSH_PUBLIC_KEY
99
#
1010
jobs:
11-
lint:
12-
concurrency:
13-
group: lint-golangci-${{ github.head_ref || github.ref_name }}
14-
cancel-in-progress: true
15-
runs-on: ubuntu-latest
16-
steps:
17-
- name: checkout
18-
uses: actions/checkout@v3
19-
- name: setup-go
20-
uses: actions/setup-go@v3
21-
with:
22-
go-version: '1.20'
23-
- name: golangci-lint
24-
uses: golangci/golangci-lint-action@v2
25-
with:
26-
version: v1.52.2
27-
code-format-check:
28-
concurrency:
29-
group: lint-autoformat-${{ github.head_ref || github.ref_name }}
30-
cancel-in-progress: true
31-
runs-on: ubuntu-latest
32-
steps:
33-
- name: checkout
34-
uses: actions/checkout@v3
35-
- name: setup-go
36-
uses: actions/setup-go@v3
37-
with:
38-
go-version: '1.20'
39-
- name: Install utilities
40-
run: |
41-
go install mvdan.cc/[email protected]
42-
go install github.com/rinchsan/gosimports/cmd/[email protected]
43-
- name: format all files with auto-formatter
44-
run: bash ./.github/scripts/format-all-go-code.sh "$PWD"
45-
- name: Check repository diff
46-
run: bash ./.github/scripts/check-work-copy-equals-to-committed.sh "auto-format broken"
47-
run-unit-tests:
48-
concurrency:
49-
group: run-unit-tests-${{ github.head_ref || github.ref_name }}
50-
cancel-in-progress: true
51-
# needs:
52-
# - lint
53-
# - code-format-check
54-
runs-on: ubuntu-latest
55-
outputs:
56-
result: ${{ steps.run-unit-tests.outputs.result }}
57-
steps:
58-
- name: checkout
59-
uses: actions/checkout@v3
60-
- name: setup-go
61-
uses: actions/setup-go@v3
62-
with:
63-
go-version: '1.20'
64-
- name: setup-medium-test-class-binaries
65-
run: |
66-
# This installs kube-apiserver and etcd binaries for `medium`
67-
# class tests. Refer to the writing tests docs for more info.
68-
make envtest
69-
KUBEBUILDER_ASSETS=$(./bin/setup-envtest use 1.26 -p path)
70-
echo "KUBEBUILDER_ASSETS=$KUBEBUILDER_ASSETS" >> $GITHUB_ENV
71-
- name: setup-gotestsum
72-
run: |
73-
go install gotest.tools/[email protected]
74-
- name: run-unit-tests
75-
id: run-unit-tests
76-
run: |
77-
gotestsum --format pkgname --jsonfile log.json -- -v -timeout 900s -p 1 ./internal/... -ginkgo.vv -coverprofile cover.out
78-
- name: convert-to-human-readable
79-
run: jq -r '.Output| gsub("[\\n]"; "")' log.json 2>/dev/null 1>log.txt || true
80-
- name: artifact-upload-step
81-
uses: actions/upload-artifact@v4
82-
id: artifact-upload-step
83-
if: always()
84-
with:
85-
name: unit-tests-log
86-
path: log.txt
87-
if-no-files-found: error
88-
- name: echo-tests-log-url
89-
run: echo 'Unit tests log URL is ${{ steps.artifact-upload-step.outputs.artifact-url }}'
11+
# lint:
12+
# concurrency:
13+
# group: lint-golangci-${{ github.head_ref || github.ref_name }}
14+
# cancel-in-progress: true
15+
# runs-on: ubuntu-latest
16+
# steps:
17+
# - name: checkout
18+
# uses: actions/checkout@v3
19+
# - name: setup-go
20+
# uses: actions/setup-go@v3
21+
# with:
22+
# go-version: '1.20'
23+
# - name: golangci-lint
24+
# uses: golangci/golangci-lint-action@v2
25+
# with:
26+
# version: v1.52.2
27+
# code-format-check:
28+
# concurrency:
29+
# group: lint-autoformat-${{ github.head_ref || github.ref_name }}
30+
# cancel-in-progress: true
31+
# runs-on: ubuntu-latest
32+
# steps:
33+
# - name: checkout
34+
# uses: actions/checkout@v3
35+
# - name: setup-go
36+
# uses: actions/setup-go@v3
37+
# with:
38+
# go-version: '1.20'
39+
# - name: Install utilities
40+
# run: |
41+
# go install mvdan.cc/[email protected]
42+
# go install github.com/rinchsan/gosimports/cmd/[email protected]
43+
# - name: format all files with auto-formatter
44+
# run: bash ./.github/scripts/format-all-go-code.sh "$PWD"
45+
# - name: Check repository diff
46+
# run: bash ./.github/scripts/check-work-copy-equals-to-committed.sh "auto-format broken"
47+
# run-unit-tests:
48+
# concurrency:
49+
# group: run-unit-tests-${{ github.head_ref || github.ref_name }}
50+
# cancel-in-progress: true
51+
# needs:
52+
# - lint
53+
# - code-format-check
54+
# runs-on: ubuntu-latest
55+
# outputs:
56+
# result: ${{ steps.run-unit-tests.outputs.result }}
57+
# steps:
58+
# - name: checkout
59+
# uses: actions/checkout@v3
60+
# - name: setup-go
61+
# uses: actions/setup-go@v3
62+
# with:
63+
# go-version: '1.20'
64+
# - name: setup-medium-test-class-binaries
65+
# run: |
66+
# # This installs kube-apiserver and etcd binaries for `medium`
67+
# # class tests. Refer to the writing tests docs for more info.
68+
# make envtest
69+
# KUBEBUILDER_ASSETS=$(./bin/setup-envtest use 1.26 -p path)
70+
# echo "KUBEBUILDER_ASSETS=$KUBEBUILDER_ASSETS" >> $GITHUB_ENV
71+
# - name: setup-gotestsum
72+
# run: |
73+
# go install gotest.tools/[email protected]
74+
# - name: run-unit-tests
75+
# id: run-unit-tests
76+
# run: |
77+
# gotestsum --format pkgname --jsonfile log.json -- -v -timeout 900s -p 1 ./internal/... -ginkgo.vv -coverprofile cover.out
78+
# - name: convert-to-human-readable
79+
# run: jq -r '.Output| gsub("[\\n]"; "")' log.json 2>/dev/null 1>log.txt || true
80+
# - name: artifact-upload-step
81+
# uses: actions/upload-artifact@v4
82+
# id: artifact-upload-step
83+
# if: always()
84+
# with:
85+
# name: unit-tests-log
86+
# path: log.txt
87+
# if-no-files-found: error
88+
# - name: echo-tests-log-url
89+
# run: echo 'Unit tests log URL is ${{ steps.artifact-upload-step.outputs.artifact-url }}'
9090
run-e2e-tests:
9191
concurrency:
9292
group: run-e2e-tests-${{ github.head_ref || github.ref_name }}
9393
cancel-in-progress: true
9494
needs:
95-
- lint
96-
- code-format-check
97-
- run-unit-tests
95+
# - lint
96+
# - code-format-check
97+
# - run-unit-tests
9898
runs-on: ubuntu-latest
9999
outputs:
100100
result: ${{ steps.run-e2e-tests.outputs.result }}

0 commit comments

Comments
 (0)