Skip to content

Commit 951c521

Browse files
author
Stefan Buck
authored
Merge pull request #10 from gr2m/tests
tests
2 parents 5ee7b1e + 53c6271 commit 951c521

15 files changed

Lines changed: 901 additions & 1735 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,16 @@ name: CI
22
on:
33
push:
44
branches:
5-
- main
5+
- main
66
jobs:
77
ci:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v2
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v2
1212

13-
- run: npm ci
13+
- run: npm ci
1414

15-
- run: npm run build
15+
- run: npm run build
1616

17-
- uses: mujo-code/puppeteer-headful@master
18-
env:
19-
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
20-
E2E_USER_NAME: ${{ secrets.E2E_USER_NAME }}
21-
E2E_USER_PASSWORD: ${{ secrets.E2E_USER_PASSWORD }}
22-
with:
23-
args: npm test
17+
- run: npm test

README.md

Lines changed: 58 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,57 @@ Use this action to convert issues into a unified JSON structure.
1717

1818
## Example
1919

20+
Given an issue form
21+
22+
```yml
23+
name: Bug
24+
description: Something is broken
25+
26+
title: "Order Pizza"
27+
28+
body:
29+
- type: input
30+
id: contact
31+
attributes:
32+
label: Your contact details
33+
validations:
34+
required: true
35+
36+
- type: input
37+
id: what_happened
38+
attributes:
39+
label: What happened?
40+
validations:
41+
required: true
42+
43+
- type: input
44+
id: version
45+
attributes:
46+
label: Version
47+
validations:
48+
required: true
49+
50+
- type: input
51+
id: browsers
52+
attributes:
53+
label: What browsers are you seeing the problem on?
54+
validations:
55+
required: true
56+
57+
- type: checkboxes
58+
attributes:
59+
label: What else?
60+
options:
61+
- label: Never give up
62+
- label: Hot Dog is a Sandwich
63+
```
64+
65+
And an issue body
66+
2067
```md
2168
### Your contact details
2269
23-
tomato@ilikepizza.com
70+
me@me.com
2471
2572
### What happened?
2673
@@ -34,20 +81,21 @@ A bug happened!
3481
3582
Chrome, Safari
3683
37-
### Code of Conduct
84+
### What else?
3885
39-
- [X] Never give up
40-
- [] Hot Dog is a Sandwich
86+
- [x] Never give up
87+
- [ ] Hot Dog is a Sandwich
4188
```
4289

90+
The actions output will be
4391

4492
```json
4593
{
46-
"contact": "me@me.com",
47-
"what_happened": "a bug happened!",
48-
"version": "1.0.0",
49-
"browsers": "chrome, safari",
50-
"never_give_up": true,
51-
"hot_dog_is_a_sandwich": false
94+
"contact": "me@me.com",
95+
"what_happened": "A bug happened!",
96+
"version": "1.0.0",
97+
"browsers": "Chrome, Safari",
98+
"never_give_up": true,
99+
"hot_dog_is_a_sandwich": false
52100
}
53101
```

__snapshots__/test.spec.js.snap

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)