Skip to content

Commit

Permalink
[ISSUE-68] Fix github ci for cross-repos
Browse files Browse the repository at this point in the history
  • Loading branch information
jlurena committed Jul 9, 2024
1 parent a9f1ec6 commit dee8057
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Code Coverage

on: [push, workflow_dispatch, pull_request]

name: Code Guard
on:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
permissions:
contents: read

checks: write
contents: write
jobs:
test:
permissions:
checks: write
contents: write
runs-on: ubuntu-20.04
strategy:
matrix:
Expand All @@ -26,7 +26,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
ruby-version: "3.0"
- name: Install dependencies
run: bundle install
env:
Expand All @@ -35,10 +35,17 @@ jobs:
- name: Run tests
run: bundle exec rake
- name: Code Coverage
uses: joshmfrankel/simplecov-check-action@main
if: matrix.rails-version == '7.1'
uses: joshmfrankel/[email protected]
with:
check_job_name: Code Coverage
github_token: ${{ secrets.GITHUB_TOKEN }}
minimum_suite_coverage: 100
github_token: ${{ secrets.GITHUB_TOKEN }}
lint:
needs: [test]
runs-on: ubuntu-20.04
steps:
- name: Lint
uses: standardrb/standard-ruby-action@v1
with:
ruby-version: "3.0"

0 comments on commit dee8057

Please sign in to comment.