From 5a7ccd5e58e2381050d3b94c489665b9b1658dcf Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Thu, 13 Jun 2024 20:39:13 +0800 Subject: [PATCH] chore: update dot files --- .github/workflows/rake.yml | 15 +++++++++++++++ .github/workflows/release.yml | 23 +++++++++++++++++++++++ .rubocop.yml | 16 ++++++++++------ 3 files changed, 48 insertions(+), 6 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..b13a247 --- /dev/null +++ b/.github/workflows/rake.yml @@ -0,0 +1,15 @@ +# Auto-generated by Cimas: Do not edit it manually! +# See https://github.com/metanorma/cimas +name: rake + +on: + push: + branches: [ master, main ] + tags: [ v* ] + pull_request: + +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..d82d86e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +# 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 + 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 762eebb..abc5f6b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,8 +1,12 @@ -AllCops: - TargetRubyVersion: 3.0 +inherit_from: + - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml -Style/StringLiterals: - EnforcedStyle: double_quotes +# local repo-specific modifications +# ... -Style/StringLiteralsInInterpolation: - EnforcedStyle: double_quotes +AllCops: + TargetRubyVersion: 2.6 + NewCops: enable + Exclude: + - 'lib/sts/mapper.rb' + - 'vendor/**/*'