This repository was archived by the owner on Nov 24, 2025. It is now read-only.
chore: bump actions/checkout from 4.2.2 to 6.0.0 #260
This file contains hidden or 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: CI/CD Pipeline | |
| on: | |
| push: | |
| branches-ignore: | |
| - 'dependabot/**' | |
| paths-ignore: | |
| - '**/*.md' | |
| - '**/*.cff' | |
| pull_request: | |
| branches: | |
| - '**' | |
| paths-ignore: | |
| - '**/*.md' | |
| - '**/*.cff' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: read-all | |
| jobs: | |
| get-ruby-versions: | |
| name: Get Ruby Versions | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version-matrix: ${{ steps.get-language-versions.outputs.latest-versions }} | |
| steps: | |
| - name: Get Required Versions | |
| uses: ActionsToolbox/get-language-versions-action@446919617fd774095b5dd3ed71c39dd3fd0d8f4f # v0.1.3 | |
| id: get-language-versions | |
| with: | |
| language: "ruby" | |
| remove-patch-version: true | |
| max-versions: 3 | |
| shellcheck: | |
| name: ShellCheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the Repository | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| - name: Perform ShellCheck Analysis | |
| run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/shellcheck/master/pipeline.sh) | |
| reek: | |
| name: Reek | |
| needs: get-ruby-versions | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby-versions: ${{ fromJson(needs.get-ruby-versions.outputs.version-matrix) }} | |
| steps: | |
| - name: Checkout the Repository | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| - name: Setup Ruby ${{ matrix.ruby-versions }} | |
| uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 | |
| with: | |
| ruby-version: ${{ matrix.ruby-versions }} | |
| - name: Perform Reek Analysis | |
| run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/reek/master/pipeline.sh) | |
| rubocop: | |
| name: Rubocop | |
| needs: get-ruby-versions | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby-versions: ${{ fromJson(needs.get-ruby-versions.outputs.version-matrix) }} | |
| steps: | |
| - name: Checkout the Repository | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| - name: Setup Ruby ${{ matrix.ruby-versions }} | |
| uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 | |
| with: | |
| ruby-version: ${{ matrix.ruby-versions }} | |
| - name: Perform Rubocop Analysis | |
| run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/rubocop/master/pipeline.sh) | |
| cicd-pipeline: | |
| if: always() | |
| name: CI/CD Pipeline | |
| needs: | |
| - shellcheck | |
| - reek | |
| - rubocop | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the Repository | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| - name: Check Job Statuses | |
| run: .github/scripts/check-jobs.sh '${{ toJson(needs) }}' |