@@ -56,75 +56,74 @@ 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 : Download image tags
92+ uses : actions/download-artifact@v4
93+ with :
94+ name : images
95+ path : build
96+ - name : Deploy
97+ run : skaffold deploy --profile e2e --build-artifacts=build/images.json
98+ - name : Run E2E tests
99+ run : skaffold verify --namespace sandbox --build-artifacts=build/images.json
100+ - name : Fetch coverage
101+ run : make fetch-coverage
102+ - name : Archive coverage report
103+ uses : actions/upload-artifact@v4
104+ with :
105+ name : coverage-e2e
106+ path : ${{ env.CODECOV_FILE }}
113107
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
108+ coverage :
109+ name : Coverage Report
110+ needs :
111+ - verify
112+ - e2e
113+ runs-on : ubuntu-latest
114+ steps :
115+ - name : Download coverage report
116+ uses : actions/download-artifact@v4
117+ with :
118+ name : coverage
119+ path : build
120+ - name : Download E2E coverage report
121+ uses : actions/download-artifact@v4
122+ with :
123+ name : coverage-e2e
124+ path : build
125+ - name : Upload coverage reports to Codecov
126+ uses : codecov/codecov-action@v5
127+ with :
128+ token : ${{ secrets.CODECOV_TOKEN }}
129+ files : build/coverage.xml,build/coverage.e2e.xml
0 commit comments