Skip to content

Bump actions/checkout from 6.0.0 to 6.0.1 #132

Bump actions/checkout from 6.0.0 to 6.0.1

Bump actions/checkout from 6.0.0 to 6.0.1 #132

Workflow file for this run

name: Integration Tests on microshift
permissions:
contents: read
packages: write
on:
push:
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: 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: tcp://localhost:24816
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
path: ${{ github.workspace }}/src/github.com/tektoncd/triggers
- name: Set up Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.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: Run tests
working-directory: ${{ github.workspace }}/src/github.com/tektoncd/triggers
run: |
echo "************************ Setup Podman ************************"
sudo podman system service --time=0 tcp://localhost:24816 &
sleep 7
echo "\ntest the podman tcp connection\n"
curl http://localhost:24816/_ping
echo "\n\n\n************************ Setup Microshift ************************"
curl -L -o minc https://github.com/minc-org/minc/releases/latest/download/minc_linux_amd64
chmod +x minc
./minc create --log-level debug
rm ./minc
export KUBECONFIG=$HOME/.kube/config
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)
${{ github.workspace }}/src/github.com/tektoncd/triggers/test/gh-e2e-tests.sh
- name: Upload test results
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
if: ${{ failure() }}
with:
path: ${{ env.ARTIFACTS }}