feat(main): add test for automq #156
Workflow file for this run
This file contains 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: 🧪 E2E Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
job0: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: build | |
run: | | |
make test | |
- name: Upload results to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
job1: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Verify sealos | |
run: | | |
curl -sfL https://raw.githubusercontent.com/labring/sealos/v5.0.0/scripts/install.sh | sh -s v5.0.0 labring/sealos | |
- name: build | |
run: | | |
go run gen/version/gen.go ghcr.io/${{ github.repository_owner }}/automq-operator:latest && make info | |
cd deploy | |
sudo sealos build -t ghcr.io/${{ github.repository_owner }}/automq-operator-sealos:latest . | |
job2: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Before freeing up disk space | |
run: | | |
echo "Before freeing up disk space" | |
echo "==============================================================================" | |
df -hT | |
echo "==============================================================================" | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Verify sealos | |
run: | | |
curl -sfL https://raw.githubusercontent.com/labring/sealos/v5.0.0/scripts/install.sh | sh -s v5.0.0 labring/sealos | |
- name: install k8s and apps | |
run: | | |
sudo systemctl unmask containerd | |
sudo systemctl unmask docker | |
sudo apt-get remove -y moby-buildx moby-cli moby-compose moby-containerd moby-engine | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get purge docker-ce docker-ce-cli containerd.io # docker-compose-plugin | |
sudo apt-get remove -y moby-engine moby-cli moby-buildx moby-compose | |
sudo rm -rf /var/run/docker.sock | |
sudo rm -rf /run/containerd/containerd.sock | |
sudo sealos run labring/kubernetes:v1.27.7 | |
sudo sealos run labring/helm:v3.9.4 labring/calico:v3.26.5 labring/openebs:v3.9.0 labring/cert-manager:v1.14.6 | |
sudo sealos run labring/minio:RELEASE.2024-01-11T07-46-16Z labring/kube-prometheus-stack:v0.63.0 | |
sudo sealos run labring/kafka-ui:v0.7.1 | |
sleep 10 | |
sudo kubectl get pods -A --show-labels | |
- name: build | |
run: | | |
sudo make e2e | |
- name: Upload results to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |