From 67a23afb4afd2f60beef08c1d4a017537dcc0b7e Mon Sep 17 00:00:00 2001 From: suleman-uzair Date: Wed, 13 May 2026 13:51:42 +0500 Subject: [PATCH] Add Cimas-generated CI workflows --- .github/workflows/rake.yml | 18 ++++++++++++++++++ .github/workflows/release.yml | 24 ++++++++++++++++++++++++ .rubocop.yml | 15 +++------------ 3 files changed, 45 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/rake.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/rake.yml b/.github/workflows/rake.yml new file mode 100644 index 0000000..5da2e1e --- /dev/null +++ b/.github/workflows/rake.yml @@ -0,0 +1,18 @@ +# Auto-generated by Cimas: Do not edit it manually! +# See https://github.com/metanorma/cimas +name: rake + +on: + push: + branches: [ main ] + tags: [ v* ] + pull_request: + +permissions: + contents: write + +jobs: + rake: + uses: metanorma/ci/.github/workflows/generic-rake.yml@main + secrets: + pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7bf4adc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +# Auto-generated by Cimas: Do not edit it manually! +# See https://github.com/metanorma/cimas +name: release + +on: + workflow_dispatch: + inputs: + next_version: + description: | + Next release version. Possible values: x.y.z, major, minor, patch (or pre|rc|etc). + Also, you can pass 'skip' to skip 'git tag' and do 'gem push' for the current version + required: true + default: 'skip' + repository_dispatch: + types: [ do-release ] + +jobs: + release: + uses: metanorma/ci/.github/workflows/rubygems-release.yml@main + with: + next_version: ${{ github.event.inputs.next_version }} + secrets: + rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }} + pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }} diff --git a/.rubocop.yml b/.rubocop.yml index 3616c55..9187922 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,16 +1,7 @@ +# Auto-generated by Cimas: Do not edit it manually! +# See https://github.com/metanorma/cimas inherit_from: - - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml - - .rubocop_todo.yml - -plugins: -- rubocop-performance -- rubocop-rake -- rubocop-rspec + - https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml AllCops: TargetRubyVersion: 3.2 - NewCops: enable - Exclude: - - 'coverage/**/*' - - 'tmp/**/*' - - 'vendor/**/*'