diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24ff95558..de8b0afbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: pull_request: push: - branches: [main, 1.x, 0.1x] + branches: [ main, 1.x, 0.1x ] env: GIT_COMMIT_SHA: ${{ github.sha }} @@ -12,6 +12,13 @@ env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} jobs: + refresh_stats: + runs-on: ubuntu-latest + steps: + - name: Refresh Team Stats + run: | + curl "https://api.github.com/repos/${{ github.repository }}/stats/contributors" +# if: github.ref == 'refs/heads/main' linting: runs-on: ubuntu-latest env: @@ -19,37 +26,37 @@ jobs: BUNDLE_WITHOUT: development:test steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2 - - name: Set up Ruby 2.7 - uses: ruby/setup-ruby@v1 - with: - ruby-version: 2.7 - bundler-cache: true + - name: Set up Ruby 2.7 + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + bundler-cache: true - - name: Rubocop - run: bundle exec rubocop --format progress + - name: Rubocop + run: bundle exec rubocop --format progress - - name: Yard-Junk - run: bundle exec yard-junk --path lib + - name: Yard-Junk + run: bundle exec yard-junk --path lib build: - needs: [linting] + needs: [ linting ] runs-on: ubuntu-latest name: build ${{ matrix.ruby }} strategy: fail-fast: false matrix: - ruby: ['2.6', '2.7', '3.0'] + ruby: [ '2.6', '2.7', '3.0' ] steps: - - uses: actions/checkout@v2 - - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - bundler-cache: true - - - name: Test - continue-on-error: ${{ matrix.experimental }} - run: bundle exec rake + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + + - name: Test + continue-on-error: ${{ matrix.experimental }} + run: bundle exec rake