Skip to content

Commit 30e1db7

Browse files
committed
Various actions updates
* Drop CodeClimate * Sort "on" targets * Ensure push branch-ignores for dependabot and renovate * Ensure concurrency section * Ensure permissions section * Ensure we don't word-wrap long lines
1 parent 98cee8e commit 30e1db7

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
name: CI
2-
32
on:
4-
push:
53
pull_request:
6-
workflow_dispatch:
4+
push:
5+
branches-ignore:
6+
- dependabot/*
7+
- renovate/*
78
schedule:
8-
- cron: '0 0 * * 0'
9-
9+
- cron: 0 0 * * 0
10+
workflow_dispatch:
11+
concurrency:
12+
group: "${{ github.workflow }}-${{ github.ref }}"
13+
cancel-in-progress: true
14+
permissions:
15+
contents: read
1016
jobs:
1117
ci:
1218
runs-on: ubuntu-latest
@@ -19,18 +25,12 @@ jobs:
1925
- '3.1'
2026
- '3.2'
2127
- '3.3'
22-
env:
23-
CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}"
2428
steps:
2529
- uses: actions/checkout@v6
2630
- name: Set up Ruby
2731
uses: ruby/setup-ruby@v1
2832
with:
29-
ruby-version: ${{ matrix.ruby-version }}
33+
ruby-version: "${{ matrix.ruby-version }}"
3034
bundler-cache: true
3135
- name: Run tests
3236
run: bundle exec rake
33-
- name: Report code coverage
34-
if: "${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.3' }}"
35-
continue-on-error: true
36-
uses: paambaati/codeclimate-action@v9

.github/workflows/openapi-generate.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: Update gem from OpenAPI Spec
2-
32
on:
4-
workflow_dispatch:
53
schedule:
6-
- cron: '0 0 * * 0'
7-
4+
- cron: 0 0 * * 0
5+
workflow_dispatch:
6+
concurrency:
7+
group: "${{ github.workflow }}-${{ github.ref }}"
8+
cancel-in-progress: true
9+
permissions:
10+
contents: read
811
jobs:
912
openapi-generate:
1013
runs-on: ubuntu-latest
@@ -37,4 +40,4 @@ jobs:
3740
body: |
3841
Update the nutanix_clustermgmt-sdk-ruby gem from the nutanix_clustermgmt openapi-spec:
3942
https://developers.nutanix.com/api-reference?namespace=clustermgmt&version=${{ env.INPUT_SPEC_VERSION }}
40-
token: ${{ secrets.PR_TOKEN }}
43+
token: "${{ secrets.PR_TOKEN }}"

0 commit comments

Comments
 (0)