Skip to content

Commit

Permalink
fix: require lint and test workflows run also on main (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteoredz authored Oct 23, 2023
1 parent cd3a950 commit f0a0d06
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- opened
- reopened
- synchronize
workflow_call:

jobs:
lint:
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@ on:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
lint:
uses: ./.github/workflows/lint.yml
test:
uses: ./.github/workflows/test.yml
release-please:
needs:
- lint
- test
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ on:
- opened
- reopened
- synchronize
workflow_call:

jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
continue-on-error: ${{endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug'}}
strategy:
fail-fast: false
matrix:
Expand All @@ -20,7 +21,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
ruby-version: ${{matrix.ruby}}
- run: bundle install
- run: bundle exec rake
coverage:
Expand All @@ -35,7 +36,7 @@ jobs:
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v5.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
coverageCommand: bundle exec rake
debug: true

0 comments on commit f0a0d06

Please # to comment.