feat: Add version command line argument #502
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: Tests | |
| on: | |
| push: | |
| branches: [ master, devel ] | |
| paths: | |
| - '!*.md' | |
| - '*.gemspec' | |
| - '**.rb' | |
| - 'Rakefile' | |
| - 'Gemfile' | |
| - 'Gemfile.lock' | |
| - 'bin/tetra' | |
| - 'spec/' | |
| - 'lib/template/bundled/' | |
| - '.github/workflows/test.yml' | |
| pull_request: | |
| branches: [ master, devel ] | |
| paths: | |
| - '!*.md' | |
| - '*.gemspec' | |
| - '**.rb' | |
| - 'Rakefile' | |
| - 'Gemfile' | |
| - 'Gemfile.lock' | |
| - 'bin/tetra' | |
| - 'spec/' | |
| - 'lib/template/bundled/' | |
| - '.github/workflows/test.yml' | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0' | |
| ruby: ['3.4', '4.0'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@4fc31e1c823882afd7ef55985266a526c589de90 # v1.282.0 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| - name: Install dependencies | |
| run: bundle install | |
| - name: git | |
| run: | | |
| git config --global user.name "GitHub Actions Bot" | |
| git config --global user.email "<>" | |
| - name: Run tests and collect coverage | |
| run: | | |
| ruby --version | |
| bundle exec rake | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| directory: ./coverage |