Repository navigation
build(deps): bump the ruby group across 1 directory with 7 updates #1447
Workflow file for this run
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 | |
| on: | |
| - pull_request | |
| jobs: | |
| shellcheck: | |
| name: Shellcheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Run ShellCheck | |
| uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # 2.0.0 | |
| with: | |
| scandir: './bin' | |
| markdown-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: DavidAnson/markdownlint-cli2-action@6bf21b07787794f89a243495939cd651942aeabe # v24.1.0 | |
| with: | |
| globs: '**/*.md' | |
| rubocop: | |
| name: 'RuboCop' | |
| runs-on: ubuntu-latest | |
| env: | |
| BUNDLE_WITHOUT: development:test | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0 | |
| with: | |
| bundler-cache: true | |
| - name: Run tests | |
| run: bundle exec rake rubocop | |
| unit_tests: | |
| name: Unit tests | |
| runs-on: ubuntu-latest | |
| env: | |
| COVERAGE: true | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0 | |
| with: | |
| bundler-cache: true | |
| - name: Setup config | |
| run: mv config/hdm.yml{.template,} | |
| - name: Run tests | |
| run: bundle exec rake test:all | |
| build_container: | |
| name: 'Build CI container' | |
| runs-on: ${{ matrix.builder }} | |
| strategy: | |
| matrix: | |
| include: | |
| - builder: ubuntu-24.04 | |
| platform: amd64 | |
| - builder: ubuntu-24.04-arm | |
| platform: arm64 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{github.event.pull_request.head.ref}} | |
| repository: ${{github.event.pull_request.head.repo.full_name}} | |
| - name: Add VERSION file | |
| run: echo "dummy" > VERSION | |
| - name: Build container | |
| uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 | |
| with: | |
| context: . | |
| tags: 'ci/hdm:${{ github.sha }}' | |
| push: false | |
| platforms: linux/${{ matrix.platform }} | |
| tests: | |
| if: always() | |
| needs: | |
| - shellcheck | |
| - rubocop | |
| - unit_tests | |
| - build_container | |
| - markdown-lint | |
| runs-on: ubuntu-24.04 | |
| name: Test suite | |
| steps: | |
| - name: Decide whether the needed jobs succeeded or failed | |
| uses: re-actors/alls-green@release/v1 | |
| with: | |
| jobs: ${{ toJSON(needs) }} | |
| dependabot: | |
| permissions: | |
| contents: write | |
| name: 'Dependabot auto-merge' | |
| needs: | |
| - tests | |
| runs-on: ubuntu-latest | |
| if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} | |
| steps: | |
| - name: Dependabot metadata | |
| id: metadata | |
| uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0 | |
| with: | |
| github-token: '${{ secrets.GITHUB_TOKEN }}' | |
| - name: Enable auto-merge for Dependabot PRs | |
| run: gh pr merge --auto --merge "$PR_URL" | |
| env: | |
| PR_URL: ${{github.event.pull_request.html_url}} | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |