feat(main): add controller tests #15
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@master | |
with: | |
go-version: 1.23.x | |
- name: build | |
run: | | |
make test | |
job1: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Set up Go | |
uses: actions/setup-go@master | |
with: | |
go-version: 1.23.x | |
- name: Verify sealos | |
run: | | |
wget https://github.com/labring/sealos/releases/download/v5.0.0/sealos_5.0.0_linux_amd64.tar.gz | |
tar -zxvf sealos_5.0.0_linux_amd64.tar.gz sealos | |
sudo chmod a+x sealos | |
sudo mv sealos /usr/bin/ | |
sudo sealos version | |
- name: Remove containerd && docker | |
uses: labring/[email protected] | |
with: | |
type: prune | |
- name: prune os | |
run: | | |
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 | |
- name: build | |
run: | | |
make e2e |