WIP deploy-all command #464
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 | |
env: | |
CI: true | |
name: "Tests (${{matrix.test_suite}}) - 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.28.0" | |
- "1.27.3" | |
- "1.26.4" | |
- "1.24.13" | |
test_suite: | |
- "unit_test" | |
- "cli_test" | |
- "serial_integration_test" | |
- "integration_test" | |
include: | |
- kubernetes_version: "1.28.0" | |
kind_image: "kindest/node:v1.28.0@sha256:dad5a6238c5e41d7cac405fae3b5eda2ad1de6f1190fa8bfc64ff5bb86173213" | |
- kubernetes_version: "1.27.3" | |
kind_image: "kindest/node:v1.27.3@sha256:9dd3392d79af1b084671b05bcf65b21de476256ad1dcc853d9f3b10b4ac52dde" | |
- 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" | |
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 ${{matrix.test_suite}} |