Skip to content

Commit

Permalink
Re-enable Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermef committed Jan 30, 2022
1 parent 55260d5 commit 738e204
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 45 deletions.
51 changes: 25 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,36 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [2.6]
# ruby-version: [2.6, 2.7, '3.0', 3.1, head, jruby, jruby-head]
ruby-version: [2.6, 2.7, '3.0', 3.1, head, jruby, jruby-head]
env:
JRUBY_OPTS: "--debug"
steps:
- uses: actions/checkout@v2
# - name: Set up Ruby ${{ matrix.ruby-version }}
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: ${{ matrix.ruby-version }}
# - name: Install dependencies
# run: bundle install
# - name: Run tests
# run: bundle exec rake spec
# - name: Coveralls Parallel
# uses: coverallsapp/github-action@1.1.3
# if: ${{ !startsWith(matrix.ruby-version, 'jruby') }}
# with:
# github-token: ${{ secrets.github_token }}
# flag-name: run-${{ matrix.ruby-version }}
# parallel: true
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake spec
- name: Coveralls Parallel
uses: coverallsapp/github-action@1.1.3
if: ${{ !startsWith(matrix.ruby-version, 'jruby') }}
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.ruby-version }}
parallel: true

# finish:
# needs: test
# runs-on: ubuntu-latest
# steps:
# - name: Coveralls Finished
# uses: coverallsapp/github-action@1.1.3
# with:
# github-token: ${{ secrets.github_token }}
# parallel-finished: true
finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
rubocop:
name: runner / rubocop
runs-on: ubuntu-latest
Expand Down
32 changes: 13 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,17 @@ jobs:
runs-on: ubuntu-latest
if: ${{ contains(github.event.workflow_run.head_commit.message, 'Bump to') && (github.event.workflow_run.conclusion == 'success') }}
steps:
- name: debug
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
- name: Install dependencies
run: bundle install
- name: Configure Git
run: |
echo "${{ contains(github.event.workflow_run.head_commit.message, 'Bump to') }}"
echo "${{ github.event.workflow_run.conclusion == 'success' }}"
echo "${{ contains(github.event.workflow_run.head_commit.message, 'Bump to') && (github.event.workflow_run.conclusion == 'success') }}"
echo "${{toJSON(github.event)}}"
# - uses: actions/checkout@v2
# - uses: ruby/setup-ruby@v1
# with:
# ruby-version: 3.1
# - name: Install dependencies
# run: bundle install
# - name: Configure Git
# run: |
# git config user.email "101073+guilhermef@users.noreply.github.com"
# git config user.name "GH actions"
# - name: push to RubyGems
# env:
# GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
# run: bundle exec rake release
git config user.email "101073+guilhermef@users.noreply.github.com"
git config user.name "GH actions"
- name: push to RubyGems
env:
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
run: bundle exec rake release

0 comments on commit 738e204

Please sign in to comment.