Run Integration tests on microshift #3
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: Integration Tests on microshift | |
| permissions: | |
| contents: read | |
| packages: write | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - release-* | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| tekton-triggers-integration-tests-microshift: | |
| runs-on: ubuntu-24.04 | |
| name: Integration Tests on microshift | |
| strategy: | |
| fail-fast: false | |
| env: | |
| SHELL: /bin/bash | |
| GOPATH: ${{ github.workspace }} | |
| GO111MODULE: on | |
| # KO_DOCKER_REPO: ghcr.io/${{ github.repository_owner }}/ | |
| KO_DOCKER_REPO: ko.local | |
| CLUSTER_DOMAIN: ${{ github.run_id }}.local | |
| ARTIFACTS: ${{ github.workspace }}/artifacts | |
| SKIP_INITIALIZE: true | |
| SKIP_SECURITY_CTX: true | |
| SKIP_KNATIVE_EG: true | |
| DOCKER_HOST: unix:///run/podman/podman.sock | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| path: ${{ github.workspace }}/src/github.com/tektoncd/triggers | |
| - name: Set up Go | |
| uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
| with: | |
| cache-dependency-path: "${{ github.workspace }}/src/github.com/tektoncd/triggers/go.sum" | |
| go-version-file: "${{ github.workspace }}/src/github.com/tektoncd/triggers/go.mod" | |
| - name: Install Podman | |
| uses: gacts/install-podman@v1 | |
| run: | | |
| sudo podman system service -t 5000 & | |
| - name: Install dependencies | |
| working-directory: ./ | |
| run: | | |
| echo '::group::install ko' | |
| curl -L https://github.com/ko-build/ko/releases/download/v0.15.4/ko_0.15.4_Linux_x86_64.tar.gz | tar xzf - ko | |
| echo '::group:: install go-junit-report' | |
| go install github.com/jstemmer/go-junit-report@v0.9.1 | |
| echo '::endgroup::' | |
| chmod +x ./ko | |
| sudo mv ko /usr/local/bin | |
| echo '::endgroup::' | |
| echo '::group::create required folders' | |
| mkdir -p "${ARTIFACTS}" | |
| echo '::endgroup::' | |
| echo "${GOPATH}/bin" >> "$GITHUB_PATH" | |
| # - name: Log in to the Container registry | |
| # uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 | |
| # with: | |
| # registry: ghcr.io | |
| # username: ${{ github.actor }} | |
| # password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run tests | |
| working-directory: ${{ github.workspace }}/src/github.com/tektoncd/triggers | |
| run: | | |
| curl -L -o minc https://github.com/minc-org/minc/releases/latest/download/minc_linux_amd64 | |
| chmod +x minc | |
| curl https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml | yq 'del(.spec.template.spec.containers[]?.securityContext.runAsUser, .spec.template.spec.containers[]?.securityContext.runAsGroup)' > release | |
| export RELEASE_YAML=$(realpath release) | |
| ./minc config set provider podman | |
| ./minc create --log-level debug | |
| export KUBECONFIG=$HOME/.kube/config | |
| ${{ github.workspace }}/src/github.com/tektoncd/triggers/test/gh-e2e-tests.sh | |
| - name: Upload test results | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| if: ${{ failure() }} | |
| with: | |
| path: ${{ env.ARTIFACTS }} |