Remove doc test (too many gotchas) #20
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: | |
| workflow_dispatch: | |
| push: | |
| branches: [ 'main' ] | |
| pull_request: | |
| branches: [ 'main' ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ 'ubuntu-latest','macos-latest' ] | |
| # - https://www.ruby-lang.org/en/downloads/branches | |
| ruby: [ '3.1','ruby-head','jruby-head' ] | |
| runs-on: "${{ matrix.os }}" | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| # - https://github.com/ruby/setup-ruby | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "${{ matrix.ruby }}" | |
| bundler: 'latest' | |
| bundler-cache: false | |
| cache-version: 2 | |
| - name: Install Gems | |
| run: | | |
| gem update bundler | |
| bundle install | |
| - name: Run tests | |
| run: bundle exec rake test | |
| - name: Test build & install | |
| run: | | |
| bundle exec rake build | |
| gem install --document --local pkg/*.gem | |
| ruby -w -r init_copy -e 'puts InitCopy::VERSION' |