-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: build storybook error * feat: GH to verify storybook build
- Loading branch information
Showing
5 changed files
with
449 additions
and
394 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Verify storybook buiild | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the dev branch | ||
on: | ||
push: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
test-and-deploy: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: c-hive/gha-yarn-cache@v1 | ||
|
||
- name: Install JS dependencies | ||
run: yarn install | ||
- name: Build storybook | ||
run: yarn build-storybook |
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 |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* File Created: Thursday, 3rd September 2020 6:40:13 pm | ||
* Author: Esperanza Horn ([email protected]) | ||
* ----- | ||
* Last Modified: Friday, 4th September 2020 4:40:57 pm | ||
* Modified By: Esperanza Horn (esperanza@inventures.cl) | ||
* Last Modified: Thursday, 24th September 2020 3:12:13 pm | ||
* Modified By: Gabriel Ulloa (gabriel@inventures.cl) | ||
* ----- | ||
* Copyright 2020 - 2020 Incrementa Ventures SpA. ALL RIGHTS RESERVED | ||
* Terms and conditions defined in license.txt | ||
|
@@ -18,12 +18,10 @@ export class DateValidator extends Validator { | |
dateRegex = new RegExp(/^([\d+]{2})\/([\d+]{2})\/([\d+]{4})$/); | ||
constructor(errorMsg: string) { | ||
super(errorMsg); | ||
this.dateRegex = this.dateRegex; | ||
} | ||
validate(input: string) { | ||
if (Boolean(input.match(this.dateRegex))) { | ||
const date = input.split('/'); | ||
const inputDate = new Date(+date[2], +date[1] - 1, +date[0]); | ||
const correctDayMonth = | ||
+date[0] >= 1 && +date[0] <= 31 && +date[1] >= 1 && +date[1] <= 12; | ||
const thisYear = new Date().getFullYear(); | ||
|
Oops, something went wrong.