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 40edf06
Show file tree
Hide file tree
Showing 24 changed files with 11,077 additions and 6,165 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: pnpm
- run: |
yarn install
yarn all
pnpm install
pnpm run 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 40edf06

Please sign in to comment.