Skip to content

Run Integration tests on microshift #1

Run Integration tests on microshift

Run Integration tests on microshift #1

Workflow file for this run

name: Integration Tests on microshift
permissions:
contents: read
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 }}/
CLUSTER_DOMAIN: c${{ github.run_id }}.local
ARTIFACTS: ${{ github.workspace }}/artifacts
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 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: Set up MicroShift
uses: uses: gacts/install-podman@v1

Check failure on line 73 in .github/workflows/microshift.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/microshift.yaml

Invalid workflow file

You have an error in your yaml syntax on line 73
run: |
curl -L -o minc https://github.com/minc-org/minc/releases/latest/download/minc_linux_amd64
chmod +x minc
./minc create
- name: Run tests
working-directory: ${{ github.workspace }}/src/github.com/tektoncd/triggers
run: |
${{ 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 }}