Fix readme #13
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: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Test (Ruby ${{ matrix.ruby }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: ["3.3", "3.4"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Remove Gemfile.lock for CI compatibility | |
| run: rm -f Gemfile.lock | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - name: Run tests | |
| run: bundle exec rake test | |
| test-head: | |
| name: Test (Ruby head) | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Remove Gemfile.lock for CI compatibility | |
| run: rm -f Gemfile.lock | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: head | |
| bundler-cache: true | |
| - name: Run tests | |
| run: bundle exec rake test | |
| lint: | |
| name: RuboCop | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Remove Gemfile.lock for CI compatibility | |
| run: rm -f Gemfile.lock | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.3" | |
| bundler-cache: true | |
| - name: Run RuboCop | |
| run: bundle exec rake rubocop | |
| build: | |
| name: Build Gem | |
| runs-on: ubuntu-latest | |
| needs: [test, lint] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Remove Gemfile.lock for CI compatibility | |
| run: rm -f Gemfile.lock | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.3" | |
| bundler-cache: true | |
| - name: Build gem | |
| run: gem build ruby_coded.gemspec | |
| - name: Verify gem was built | |
| run: ls ruby_coded-*.gem |