Skip to content

Commit

Permalink
Merge 63dde70 into 94b7bf4
Browse files Browse the repository at this point in the history
  • Loading branch information
iMacTia committed Aug 21, 2021
2 parents 94b7bf4 + 63dde70 commit eba026e
Showing 1 changed file with 29 additions and 22 deletions.
51 changes: 29 additions & 22 deletions .github/workflows/ci.yml
Expand Up @@ -4,52 +4,59 @@ on:
pull_request:

push:
branches: [main, 1.x, 0.1x]
branches: [ main, 1.x, 0.1x ]

env:
GIT_COMMIT_SHA: ${{ github.sha }}
GIT_BRANCH: ${{ github.ref }}
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:
BUNDLE_WITH: lint
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

0 comments on commit eba026e

Please sign in to comment.