feat: e2e test #21
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| jobs: | |
| image-build: | |
| name: Image Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| with: | |
| platforms: linux/amd64,linux/arm64 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build images | |
| uses: hiberbee/[email protected] | |
| with: | |
| skaffold-version: 2.14.1 | |
| command: build | |
| file-output: images.json | |
| - name: Archive image tags | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: images | |
| path: images.json | |
| verify: | |
| name: Verify | |
| runs-on: ubuntu-latest | |
| env: | |
| CODECOV_FILE: build/coverage.xml | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24' | |
| - name: Generate | |
| run: make generate format | |
| - name: No changed files | |
| run: git diff --name-status --exit-code | |
| - name: Lint | |
| run: make lint | |
| - name: Integration test | |
| run: make integration-test coverage | |
| - name: Archive coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage | |
| path: ${{ env.CODECOV_FILE }} | |
| e2e: | |
| name: E2E Test | |
| needs: | |
| - verify | |
| - image-build | |
| runs-on: ubuntu-latest | |
| env: | |
| CODECOV_FILE: build/coverage.e2e.xml | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Download image tags | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: images | |
| - name: Create Kind cluster | |
| uses: helm/kind-action@v1 | |
| - name: Bootstrap | |
| run: kubectl apply --enable-helm -k config/bootstrap | |
| - name: Deploy | |
| uses: hiberbee/[email protected] | |
| with: | |
| skaffold-version: 2.14.1 | |
| command: deploy | |
| images: images.json | |
| - name: Archive coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage | |
| path: ${{ env.CODECOV_FILE }} | |
| coverage: | |
| name: Coverage Report | |
| needs: | |
| - verify | |
| - e2e | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download coverage reports | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: coverage | |
| - name: Generate | |
| uses: irongut/[email protected] | |
| with: | |
| filename: build/coverage.xml,build/coverage.e2e.xml | |
| badge: true | |
| format: markdown | |
| output: both |