chore: add AGENTS.md symlink to CLAUDE.md #59
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: [push] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.4.1 | |
| bundler-cache: true | |
| - name: Run linter | |
| run: bundle exec rubocop | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby-version: | |
| - '2.7' | |
| - '3.0' | |
| - '3.1' | |
| - '3.2' | |
| - '3.3' | |
| - '3.4' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true | |
| - name: Run tests | |
| run: bundle exec rspec | |
| release-please: | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/master' | |
| outputs: | |
| release_created: ${{ steps.release-please.outputs.release_created }} | |
| version: ${{ steps.release-please.outputs.version }} | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release-please | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: [lint, test, release-please] | |
| if: ${{ needs.release-please.outputs.release_created }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.4.1 | |
| - name: Build Gem | |
| run: gem build *.gemspec | |
| - name: Setup credentials | |
| run: | | |
| mkdir -p $HOME/.gem | |
| touch $HOME/.gem/credentials | |
| chmod 0600 $HOME/.gem/credentials | |
| printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials | |
| env: | |
| RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}} | |
| - name: Publish to RubyGems | |
| run: | | |
| gem push *.gem |