@@ -56,75 +56,73 @@ jobs:
5656 run : make lint
5757 - name : Integration test
5858 run : make integration-test coverage
59- - name : Generate
60- uses : irongut/CodeCoverageSummary@v1.3.0
61- with :
62- filename : build/coverage.xml,build/coverage.e2e.xml
63- badge : true
64- format : markdown
65- output : both
6659 - name : Archive coverage report
6760 uses : actions/upload-artifact@v4
6861 with :
6962 name : coverage
7063 path : ${{ env.CODECOV_FILE }}
7164
72- # e2e:
73- # name: E2E Test
74- # needs:
75- # - verify
76- # - image-build
77- # runs-on: ubuntu-latest
78- # env:
79- # CODECOV_FILE: build/coverage.e2e.xml
80- # SKAFFOLD_NAMESPACE: sandbox
81- # SKAFFOLD_RUN_ID: e2e-test
82- # steps:
83- # - name: Checkout
84- # uses: actions/checkout@v4
85- # - name: Setup Skaffold
86- # uses: heypigeonhq/setup-skaffold@v1.0.0
87- # with:
88- # version: 2.14.1
89- # - name: Create Kind cluster
90- # uses: helm/kind-action@v1
91- # with:
92- # cluster_name: kind-etcd
93- # - name: Bootstrap
94- # run: |
95- # kustomize build --enable-helm config/bootstrap | kubectl apply -f -
96- # kubectl --namespace cert-manager wait --for=condition=Available deployment/cert-manager-webhook
97- # kubectl get namespace sandbox 2>/dev/null || kubectl create namespace sandbox
98- # - name: Build images
99- # run: |
100- # mkdir build
101- # skaffold build --file-output=build/images.json
102- # - name: Deploy
103- # run: skaffold deploy --profile e2e --build-artifacts=build/images.json
104- # - name: Run E2E tests
105- # run: skaffold verify --namespace sandbox --build-artifacts=build/images.json
106- # - name: Fetch coverage
107- # run: make fetch-coverage
108- # - name: Archive coverage report
109- # uses: actions/upload-artifact@v4
110- # with:
111- # name: coverage-e2e
112- # path: ${{ env.CODECOV_FILE }}
65+ e2e :
66+ name : E2E Test
67+ needs :
68+ - verify
69+ - image-build
70+ runs-on : ubuntu-latest
71+ env :
72+ CODECOV_FILE : build/coverage.e2e.xml
73+ SKAFFOLD_NAMESPACE : sandbox
74+ SKAFFOLD_RUN_ID : e2e-test
75+ steps :
76+ - name : Checkout
77+ uses : actions/checkout@v4
78+ - name : Setup Skaffold
79+ uses : heypigeonhq/setup-skaffold@v1.0.0
80+ with :
81+ version : 2.14.1
82+ - name : Create Kind cluster
83+ uses : helm/kind-action@v1
84+ with :
85+ cluster_name : kind-etcd
86+ - name : Bootstrap
87+ run : |
88+ kustomize build --enable-helm config/bootstrap | kubectl apply -f -
89+ kubectl --namespace cert-manager wait --for=condition=Available deployment/cert-manager-webhook
90+ kubectl get namespace sandbox 2>/dev/null || kubectl create namespace sandbox
91+ - name : Build images
92+ run : |
93+ mkdir build
94+ skaffold build --file-output=build/images.json
95+ - name : Deploy
96+ run : skaffold deploy --profile e2e --build-artifacts=build/images.json
97+ - name : Run E2E tests
98+ run : skaffold verify --namespace sandbox --build-artifacts=build/images.json
99+ - name : Fetch coverage
100+ run : make fetch-coverage
101+ - name : Archive coverage report
102+ uses : actions/upload-artifact@v4
103+ with :
104+ name : coverage-e2e
105+ path : ${{ env.CODECOV_FILE }}
113106
114- # coverage:
115- # name: Coverage Report
116- # needs:
117- # - verify
118- # - e2e
119- # runs-on: ubuntu-latest
120- # steps:
121- # - name: Download coverage report
122- # uses: actions/download-artifact@v4
123- # with:
124- # name: coverage
125- # path: build
126- # - name: Download E2E coverage report
127- # uses: actions/download-artifact@v4
128- # with:
129- # name: coverage-e2e
130- # path: build
107+ coverage :
108+ name : Coverage Report
109+ needs :
110+ - verify
111+ - e2e
112+ runs-on : ubuntu-latest
113+ steps :
114+ - name : Download coverage report
115+ uses : actions/download-artifact@v4
116+ with :
117+ name : coverage
118+ path : build
119+ - name : Download E2E coverage report
120+ uses : actions/download-artifact@v4
121+ with :
122+ name : coverage-e2e
123+ path : build
124+ - name : Upload coverage reports to Codecov
125+ uses : codecov/codecov-action@v5
126+ with :
127+ token : ${{ secrets.CODECOV_TOKEN }}
128+ files : build/coverage.xml,build/coverage.e2e.xml
0 commit comments