-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Leonardo Milleri <[email protected]>
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: "Integration tests" | ||
|
||
on: | ||
push: | ||
branches: | ||
- test-ci | ||
#pull_request: | ||
# branches: | ||
# - main | ||
|
||
env: | ||
# github.repository as <account>/<repo> | ||
# REGISTRY: quay.io/${{ github.repository }} | ||
# REGISTRY: quay.io/confidential-containers | ||
KUTTL: /usr/local/bin/kubectl-kuttl | ||
REGISTRY: quay.io | ||
# github.repository as <account>/<repo> | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
integration-tests: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.21 | ||
|
||
- uses: actions/[email protected] | ||
|
||
- name: Log into registry ${{ env.REGISTRY }} | ||
uses: docker/login-action@v3 | ||
if: github.event_name != 'pull_request' | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ secrets.QUAY_ID }} | ||
password: ${{ secrets.QUAY_SECRET }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo curl -Lo $KUTTL https://github.com/kudobuilder/kuttl/releases/download/v0.19.0/kubectl-kuttl_0.19.0_linux_x86_64 | ||
sudo chmod +x $KUTTL | ||
sudo curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/v0.22.0/kind-linux-amd64 | ||
sudo chmod +x kind | ||
- name: "Run integration tests" | ||
run: REGISTRY=$REGISTRY/${{ github.repository }} make test-e2e |