Skip to content

Commit

Permalink
chore(actions): 👷 add lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy committed Oct 12, 2021
1 parent 85dab1c commit fbc0e0f
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 128 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
- uses: actions/setup-node@v2
with:
node-version: "12.x"

Expand All @@ -33,4 +31,4 @@ jobs:
run: yarn

- name: Build
run: yarn lint && yarn build
run: yarn build
23 changes: 0 additions & 23 deletions .github/workflows/bundle-size-real.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/bundle-size.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lint

on:
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "12.x"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install deps
run: yarn

- name: Build
run: yarn lint
15 changes: 0 additions & 15 deletions .github/workflows/slash-command-dispatch.yml

This file was deleted.

70 changes: 35 additions & 35 deletions .size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,39 @@ module.exports = [
name: "Full",
path: "dist/esm/index.js",
},
{
name: "Box",
path: "dist/esm/index.js",
import: "{ Box }",
},
{
name: "Create Icon",
path: "dist/esm/index.js",
import: "{ createIcon }",
},
{
name: "Spinner",
path: "dist/esm/index.js",
import: "{ Spinner }",
},
{
name: "Button",
path: "dist/esm/index.js",
import: "{ Button }",
},
{
name: "Badge",
path: "dist/esm/index.js",
import: "{ Badge }",
},
{
name: "Checkbox",
path: "dist/esm/index.js",
import: "{ Checkbox }",
},
{
name: "Radio",
path: "dist/esm/index.js",
import: "{ Radio }",
},
// {
// name: "Box",
// path: "dist/esm/index.js",
// import: "{ Box }",
// },
// {
// name: "Create Icon",
// path: "dist/esm/index.js",
// import: "{ createIcon }",
// },
// {
// name: "Spinner",
// path: "dist/esm/index.js",
// import: "{ Spinner }",
// },
// {
// name: "Button",
// path: "dist/esm/index.js",
// import: "{ Button }",
// },
// {
// name: "Badge",
// path: "dist/esm/index.js",
// import: "{ Badge }",
// },
// {
// name: "Checkbox",
// path: "dist/esm/index.js",
// import: "{ Checkbox }",
// },
// {
// name: "Radio",
// path: "dist/esm/index.js",
// import: "{ Radio }",
// },
];
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"previews": "node scripts/create-previews.js",
"postpublish": "pinst --enable",
"release": "release-it",
"size": "yarn build && size-limit",
"size": "yarn build && size-limit --save-bundle out --clean-dir",
"storybook": "cross-env TAILWIND_MODE=watch start-storybook -p 6006",
"storybook-build": "yarn keys && yarn previews && build-storybook",
"test": "jest --config ./jest.config.ts --no-cache"
Expand Down Expand Up @@ -177,7 +177,7 @@
"reakit-test-utils": "0.15.2",
"release-it": "14.11.6",
"rimraf": "3.0.2",
"size-limit": "5.0.5",
"size-limit": "6.0.1",
"sort-package-json": "1.52.0",
"storybook-addon-preview": "2.1.2",
"tailwindcss": "2.2.16",
Expand Down
40 changes: 17 additions & 23 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9128,7 +9128,7 @@ glob-fs@0.1.7:
is-windows "^0.1.0"
kind-of "^2.0.0"
lazy-cache "^0.1.0"
micromatch "github:jonschlinkert/micromatch#2.2.0"
micromatch jonschlinkert/micromatch#2.2.0
mixin-object "^2.0.0"
object-visit "^0.1.0"
object.omit "^1.1.0"
Expand Down Expand Up @@ -12177,13 +12177,6 @@ methods@~1.1.2:
resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=

mico-spinner@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/mico-spinner/-/mico-spinner-1.3.0.tgz#aa8611aceb551522f5bab7f2895a159ac0c29d6a"
integrity sha512-iwc0mhP+H/qorAKhDsDW40QOb3kKxAIwH1ImoIkFUWP3kT4gn6UZ2gdyT0uNRLrCx7fADY1F7OFBuFM1/wfflQ==
dependencies:
nanocolors "^0.1.1"

microevent.ts@~0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/microevent.ts/-/microevent.ts-0.1.1.tgz#70b09b83f43df5172d0205a63025bce0f7357fa0"
Expand Down Expand Up @@ -12235,9 +12228,8 @@ micromatch@^4.0.2, micromatch@^4.0.4:
braces "^3.0.1"
picomatch "^2.2.3"

"micromatch@github:jonschlinkert/micromatch#2.2.0":
micromatch@jonschlinkert/micromatch#2.2.0:
version "2.2.0"
uid "5017fd78202e04c684cc31d3c2fb1f469ea222ff"
resolved "https://codeload.github.com/jonschlinkert/micromatch/tar.gz/5017fd78202e04c684cc31d3c2fb1f469ea222ff"
dependencies:
arr-diff "^1.0.1"
Expand Down Expand Up @@ -12524,7 +12516,7 @@ nan@^2.12.1:
resolved "https://registry.yarnpkg.com/nan/-/nan-2.15.0.tgz#3f34a473ff18e15c1b5626b62903b5ad6e665fee"
integrity sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==

nanocolors@^0.1.0, nanocolors@^0.1.1:
nanocolors@^0.1.0:
version "0.1.12"
resolved "https://registry.yarnpkg.com/nanocolors/-/nanocolors-0.1.12.tgz#8577482c58cbd7b5bb1681db4cf48f11a87fd5f6"
integrity sha512-2nMHqg1x5PU+unxX7PGY7AuYxl2qDx7PSrTRjizr8sxdd3l/3hBuWWaki62qmtYm2U5i4Z5E7GbjlyDFhs9/EQ==
Expand Down Expand Up @@ -12571,6 +12563,13 @@ nanomatch@^1.2.9:
snapdragon "^0.8.1"
to-regex "^3.0.1"

nanospinner@^0.2.2:
version "0.2.2"
resolved "https://registry.yarnpkg.com/nanospinner/-/nanospinner-0.2.2.tgz#6de68ee0073bdf13e15b32034050529d13af733e"
integrity sha512-sy9s0FNv/N2XY78uUwrgSm4e93Oy/w43GqDTxVh7cH7LDcG4dtNJJkWRIFUmC3EDp/lYIbPWpVysofYca0Yv2Q==
dependencies:
picocolors "^0.2.0"

natural-compare@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
Expand Down Expand Up @@ -13534,12 +13533,7 @@ performance-now@^2.1.0:
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=

picocolors@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-0.1.0.tgz#e10d446a03ca5f127e9680865fbfe80ee5148266"
integrity sha512-W+3MFREUEjPt0MnYaR51VkLw8tY8UubrLOqcBmaQocZhM34hQhjg50FQ0c6f0UldPlecieoqUqI6ToM/dNblDw==

picocolors@^0.2.1:
picocolors@^0.2.0, picocolors@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-0.2.1.tgz#570670f793646851d1ba135996962abad587859f"
integrity sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==
Expand Down Expand Up @@ -15702,18 +15696,18 @@ sisteransi@^1.0.5:
resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed"
integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==

size-limit@5.0.5:
version "5.0.5"
resolved "https://registry.yarnpkg.com/size-limit/-/size-limit-5.0.5.tgz#860643aade5dae4bd9afc72ab0ef081e987e5377"
integrity sha512-DtblS3Qc1SmtEtAYE6RGmg1UFdIzz2aWhlnzbBc3FYc0XMsTVT0kKB40DMIZ/yU5JztkMetdqB5Q5Pow/iVazg==
size-limit@6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/size-limit/-/size-limit-6.0.1.tgz#6847de7adbfd5a0f8d0167a1db5605b1164bf0b1"
integrity sha512-AFMWULVTAH/VkI15+d4Hn3EXbhh3ZvPPdRs/x4Pu3ZlWs3IP5k9/F3nAl4wPIDEXmHJiA6pbrmWUumOpaidrow==
dependencies:
bytes-iec "^3.1.1"
chokidar "^3.5.2"
ci-job-number "^1.2.2"
globby "^11.0.4"
lilconfig "^2.0.3"
mico-spinner "^1.3.0"
picocolors "^0.1.0"
nanospinner "^0.2.2"
picocolors "^0.2.1"

slash@^2.0.0:
version "2.0.0"
Expand Down

1 comment on commit fbc0e0f

@vercel
Copy link

@vercel vercel bot commented on fbc0e0f Oct 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.