Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
name: CI
on:
push:
pull_request:
workflow_dispatch:
push:
branches-ignore:
- dependabot/*
- renovate/*
schedule:
- cron: '0 0 * * 0'
- cron: 0 0 * * 0
workflow_dispatch:
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
permissions:
contents: read
jobs:
ci:
strategy:
Expand All @@ -23,7 +31,7 @@ jobs:
os:
- macos-latest
- ubuntu-latest
runs-on: ${{ matrix.os }}
runs-on: "${{ matrix.os }}"
timeout-minutes: 10
env:
BUNDLE_GEMFILE: test/gemfiles/Gemfile.${{ matrix.gemfile }}
Expand All @@ -32,7 +40,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
ruby-version: "${{ matrix.ruby }}"
bundler-cache: true
- name: Run tests
run: bin/ci
Expand All @@ -43,7 +51,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1' # Run rubocop against lowest supported ruby
ruby-version: '3.3'
bundler-cache: true
- name: Run rubocop
run: bundle exec rake rubocop
18 changes: 10 additions & 8 deletions .github/workflows/update_certs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Update k0s Certs

on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'

- cron: 0 0 1 * *
workflow_dispatch:
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
permissions:
contents: read
jobs:
update-certs-k0s:
runs-on: ubuntu-latest
Expand All @@ -13,7 +16,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
ruby-version: '3.3'
bundler-cache: true
- name: Check k0s Certs
id: check-certs-expired
Expand All @@ -26,8 +29,7 @@ jobs:
uses: peter-evans/create-pull-request@v7
if: steps.check-certs-expired.outcome == 'failure'
with:
add-paths: |
test/config/*
add-paths: test/config/*
commit-message: Update k0s Certs
branch: update_k0s_certs
author: ManageIQ Bot <bot@manageiq.org>
Expand All @@ -38,4 +40,4 @@ jobs:
push-to-fork: miq_bot/kubeclient
title: Update k0s Certs
body: Update the saved kubeclient certificates
token: ${{ secrets.PR_TOKEN }}
token: "${{ secrets.PR_TOKEN }}"
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![Gem Version](https://badge.fury.io/rb/kubeclient.svg)](http://badge.fury.io/rb/kubeclient)
[![Build Status](https://github.com/ManageIQ/kubeclient/actions/workflows/ci.yml/badge.svg)](https://github.com/ManageIQ/kubeclient/actions?branch=master)
[![Code Climate](https://codeclimate.com/github/ManageIQ/kubeclient.svg)](https://codeclimate.com/github/ManageIQ/kubeclient)
[![Downloads rate by version](https://img.shields.io/badge/downloads%20rate-by%20version-blue)](https://ui.honeycomb.io/ruby-together/datasets/rubygems.org/result/7mZHKUfmHkj)

A Ruby client for Kubernetes REST api.
Expand Down