Skip to content

Commit

Permalink
feat: Support for comment report
Browse files Browse the repository at this point in the history
  • Loading branch information
aki77 committed Jul 1, 2024
1 parent bc4d3d8 commit ba54b89
Show file tree
Hide file tree
Showing 25 changed files with 11,083 additions and 6,168 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
with:
node-version-file: "package.json"
- run: |
yarn install
yarn all
pnpm install
pnpm all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 3 additions & 1 deletion __tests__/parse.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import {parse} from '../src/parse'
import {expect, test} from '@jest/globals'

test('Parse rspec result json', async () => {
const result = parse([path.resolve(__dirname, '../.dummy_results-0.json')])
const result = await parse([
path.resolve(__dirname, '../.dummy_results-0.json')
])
expect(result).toEqual({
summary: '25 examples, 1 failure',
examples: [
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ inputs:
description: "Hide footer link"
default: "false"
required: false
comment:
description: "Set this if want to comment report to pull request"
default: "true"
required: false
runs:
using: "node20"
main: "dist/index.js"
Loading

0 comments on commit ba54b89

Please sign in to comment.