Skip to content

Commit

Permalink
Merge pull request #34 from certego/develop
Browse files Browse the repository at this point in the history
0.1.1
  • Loading branch information
mlodic authored Jun 28, 2022
2 parents aaffd8c + b65c2f8 commit 948c95c
Show file tree
Hide file tree
Showing 12 changed files with 1,980 additions and 1,408 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/pull_request_automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build & Tests

on:
pull_request:
branches: [ main, develop ]
paths-ignore:
- "**.md"
- "docs/**"

jobs:
frontend-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up NodeJS
uses: actions/setup-node@v3
with:
node-version: 15
- name: Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-build-${{ hashFiles('frontend/package-lock.json') }}
restore-keys: |
npm-build-${{ hashFiles('frontend/package-lock.json') }}
npm-build-
npm
- name: Install dependencies
run: |
npm i --no-optional --no-audit --no-fund
working-directory: .
- name: Lint with eslint
run: |
npm run lint
working-directory: .
# no tests are implemented right now
# - name: Test with Jest
# run: |
# npm run test
# working-directory: ./frontend
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ dist
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# IDEs
.idea
.code
10 changes: 9 additions & 1 deletion example/src/sections/Form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
MultiSelectTextInput,
InputCheckBox,
CustomJsonInput,
NewJsonRenderer,
} from "@certego/certego-ui";

// constants
Expand Down Expand Up @@ -250,10 +251,17 @@ export default function FormExample(props) {
{/* CustomJsonInput */}
<Col lg={6}>
<FormGroup>
<Label for="debugForm">Debug Form Values</Label>
<Label for="debugForm1">Debug Form Values (CustomJsonInput)</Label>
<CustomJsonInput placeholder={formik.values} viewOnly />
</FormGroup>
</Col>

<Col lg={6}>
<FormGroup>
<Label for="debugForm2">Debug Form Values (NewJsonRenderer)</Label>
<NewJsonRenderer placeholder={formik.values} />
</FormGroup>
</Col>
</Row>
<Row className="mt-5">
{/* Submit */}
Expand Down
Loading

0 comments on commit 948c95c

Please sign in to comment.