-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from MacPaw/fix/typescript-errors-for-input-co…
…mponent fix: typescript errors for input component
- Loading branch information
Showing
8 changed files
with
88 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,72 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
install: | ||
name: Install | ||
runs-on: ubuntu-latest | ||
continue-on-error: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '16.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: | | ||
npm i | ||
npm run lint | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
run: npm i | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Pack artifact | ||
run: tar czf /tmp/artifact.tar.gz . | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ui-kit-artifact | ||
path: /tmp/artifact.tar.gz | ||
retention-days: 1 | ||
|
||
eslint: | ||
name: Eslint | ||
runs-on: ubuntu-latest | ||
needs: [install] | ||
continue-on-error: false | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: ui-kit-artifact | ||
|
||
- name: Unpack artifact | ||
run: tar xf artifact.tar.gz | ||
|
||
- name: Run eslint | ||
run: npm run lint | ||
|
||
typescript: | ||
name: Typescript | ||
runs-on: ubuntu-latest | ||
needs: [install] | ||
continue-on-error: false | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: ui-kit-artifact | ||
|
||
- name: Unpack artifact | ||
run: tar xf artifact.tar.gz | ||
|
||
- name: Run typescript compile | ||
run: yarn tsc --noEmit |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
export type Error = boolean | string | ReactNode; | ||
|
||
export type InputValueType = string | number | readonly string[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters