Skip to content

ci

ci #1142

Workflow file for this run

name: ci
on:
pull_request:
branches:
- master
push:
branches:
- master
schedule:
- cron: '0 1 * * *'
jobs:
pull:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
target:
- verify
- build
- test
# - test-integration
- e2e-examples
- e2e-v1.24
- e2e-v1.25
- e2e-v1.26
- e2e-v1.27
- e2e-v1.28
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22.5
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0
path: go/src/github.com/${{ github.repository }}
- name: make ${{ matrix.target }}
run: |
# workaround for https://github.com/actions/setup-go/issues/14
export GOPATH=${GITHUB_WORKSPACE}/go
export PATH=$PATH:$GOPATH/bin
if [ "$target" == "test-integration" ]; then export GOFLAGS="-v"; fi
if [[ "$target" == e2e-v* ]]; then
IFS=- read a b <<<"$target"
SKIP_DOWN=y KUBE_VERSION=$b GINKGO_NODES=4 make e2e
else
make $target
fi
working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
env:
target: ${{ matrix.target }}
- name: Set up tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 15