Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Tests

on: [push]
on:
push:
branches: [master]
pull_request:

jobs:
linter:
Expand Down Expand Up @@ -29,6 +32,11 @@ jobs:

runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: write
actions: read

steps:
- uses: actions/checkout@v3

Expand All @@ -38,3 +46,11 @@ jobs:
bundler-cache: true

- run: bundle exec rspec

- uses: actions/upload-artifact@v4
with:
name: coverage-html
path: coverage/

- uses: k1LoW/octocov-action@v1
if: ${{ !github.event.pull_request.head.repo.fork }}
18 changes: 18 additions & 0 deletions .octocov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
coverage:
paths:
- coverage/.resultset.json

comment:
if: is_pull_request

summary:
if: is_pull_request

report:
if: is_default_branch
datastores:
- artifact://${GITHUB_REPOSITORY}

diff:
datastores:
- artifact://${GITHUB_REPOSITORY}
Loading