Merge pull request #926 from Shopify/enable-ondelete-update-strategy #382
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
name: Krane CI | |
on: [push] | |
jobs: | |
ruby-tests: | |
runs-on: ubuntu-latest | |
name: "Tests - Ruby ${{ matrix.ruby }} with Kubernetes ${{ matrix.kubernetes_version }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- "3.2.2" | |
- "3.1.2" | |
- "3.0.4" | |
- "2.7.6" | |
kubernetes_version: | |
- "1.26.4" | |
- "1.24.13" | |
- "1.23.17" | |
include: | |
- kubernetes_version: "1.26.4" | |
kind_image: "kindest/node:v1.26.4@sha256:a539833d26264444ab3b8f5e56e23fa3361436445fa23c864e6dec622458858f" | |
- kubernetes_version: "1.24.13" | |
kind_image: "kindest/node:v1.24.13@sha256:c9e00e2b228e47ba3c96eaf0309b27dc3f73e444944e4c900016fd07b1b805cb" | |
- kubernetes_version: "1.23.17" | |
kind_image: "kindest/node:v1.23.17@sha256:eb33093b461ffee7614ca65a39ac0fb57982e1407dc38df4df92811c4fbcb687" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Ruby ${{ matrix.ruby }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Setup kubectl ${{ matrix.kubernetes_version }} | |
run: | | |
mkdir -p "${GITHUB_WORKSPACE}/bin" | |
curl -o "${GITHUB_WORKSPACE}/bin/kubectl" -LO "https://dl.k8s.io/release/v${{ matrix.kubernetes_version }}/bin/linux/amd64/kubectl" | |
chmod +x "${GITHUB_WORKSPACE}/bin/kubectl" | |
echo "PATH=$GITHUB_WORKSPACE/bin:${PATH}" >> $GITHUB_ENV | |
- name: Create kind cluster for ${{ matrix.kubernetes_version }} | |
run: | | |
kind create cluster --image=${{ matrix.kind_image }} | |
- name: Run tests | |
run: | | |
bin/test |