.github/workflows/gem-workflow.yml in ledger_sync-2.3.1 vs .github/workflows/gem-workflow.yml in ledger_sync-2.4.4

- old
+ new

@@ -6,38 +6,48 @@ types: [created] jobs: rubocop: strategy: matrix: - ruby-version: [2.5.8, 2.6.3, 2.6.6, 2.7.1, 3.0.2] - runs-on: [ubuntu-latest] + os: [ubuntu-latest] + ruby-version: ['2.7', '3.0'] + runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: persist-credentials: false fetch-depth: 0 - name: Ruby Setup and Bundle uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true + run: | + gem install bundler + bundle update + bundle install - run: bundle exec rubocop rspec: strategy: matrix: - ruby-version: [2.5.8, 2.6.3, 2.6.6, 2.7.1, 3.0.2] - runs-on: [ubuntu-latest] + os: [ubuntu-latest] + ruby-version: ['2.7', '3.0'] + runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: persist-credentials: false fetch-depth: 0 - name: Ruby Setup and Bundle uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true + run: | + gem install bundler + bundle update + bundle install - name: rspec and report to coveralls run: bundle exec rspec --order rand - name: Coveralls uses: coverallsapp/github-action@master with: @@ -48,17 +58,17 @@ runs-on: ubuntu-latest needs: ["rubocop", "rspec"] if: github.event_name == 'release' && github.event.action == 'created' steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false fetch-depth: 0 - name: Ruby Setup and Bundle uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7.1 + ruby-version: 2.7.5 bundler-cache: true - name: Publish to RubyGems run: | mkdir -p $HOME/.gem touch $HOME/.gem/credentials