✨ End to end tests #13
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: End-to-end tests | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
e2e: | |
runs-on: ubuntu-latest | |
environment: e2e | |
env: | |
IONOS_TOKEN: ${{ secrets.IONOS_TOKEN }} | |
IONOSCLOUD_MACHINE_IMAGE_ID: ${{ vars.IONOSCLOUD_MACHINE_IMAGE_ID }} | |
CONTROL_PLANE_ENDPOINT_LOCATION: ${{ vars.CONTROL_PLANE_ENDPOINT_LOCATION }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go environment | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Install kubectl and kustomize | |
run: | | |
sudo snap install kubectl --classic | |
sudo snap install kustomize | |
- name: Build image | |
run: make docker-build | |
- name: Run e2e tests | |
run: make GINKGO_LABEL="!Conformance" test-e2e | |
- name : Upload artifacts | |
uses: actions/upload-artifact@v4 | |
if: success() || failure() | |
with: | |
name: logs | |
path: _artifacts | |
retention-days: 7 |