File tree Expand file tree Collapse file tree 4 files changed +54
-2
lines changed
Expand file tree Collapse file tree 4 files changed +54
-2
lines changed Original file line number Diff line number Diff line change 1+ name : " Size Limit"
2+ on :
3+ pull_request :
4+ branches :
5+ - master
6+ jobs :
7+ size :
8+ runs-on : ubuntu-latest
9+ env :
10+ CI_JOB_NUMBER : 1
11+ steps :
12+ - uses : actions/checkout@v1
13+ - uses : andresz1/size-limit-action@v1
14+ with :
15+ github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Testing
2+ on :
3+ push :
4+ pull_request :
5+ branches :
6+ - master
7+ jobs :
8+ testing :
9+ name : Testing
10+ runs-on : ubuntu-latest
11+ env :
12+ BS_ACCESS_KEY : ${{ secrets.BS_ACCESS_KEY }}
13+ BS_USERNAME : ${{ secrets.BS_USERNAME }}
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v2
17+ - name : Set up Node
18+ uses : actions/setup-node@v1
19+ with :
20+ always-auth : true
21+ node-version : ' 12.x'
22+ - name : Installing Dependencies
23+ run : yarn install --frozen-lockfile
24+ - name : Removing Conflicting TypeScript ResizeObserver definition
25+ # Without this, running `tsc -p tests` fails, not sure how else to fix it.
26+ run : rm node_modules/resize-observer-polyfill/src/index.d.ts
27+ - name : Checking File Size
28+ run : yarn check:size
29+ - name : Checking Types
30+ run : yarn check:types
31+ - name : Testing SSR
32+ run : yarn test:create:ssr
33+ - name : Testing in Modern Browsers (BrowserStack)
34+ run : yarn test:bs:modern
35+ - name : Testing in IE11 (BrowserStack)
36+ run : yarn test:bs:ie
Original file line number Diff line number Diff line change 1414tests
1515tsconfig.json
1616media
17+ .github
Original file line number Diff line number Diff line change 1515 "src:watch" : " rollup -c -w" ,
1616 "check:size" : " size-limit" ,
1717 "check:types" : " tsc -p tests" ,
18- "test" : " run-s 'build' 'check:size' 'check:types' 'test:create:ssr' 'test:headless:*' 'test: bs:*'" ,
18+ "test" : " run-s 'build' 'check:size' 'check:types' 'test:create:ssr' 'test:bs:*'" ,
1919 "test:create:ssr" : " node ./tests/ssr/create-ssr-test.js" ,
2020 "test:chrome" : " KARMA_BROWSERS=Chrome yarn karma:run" ,
2121 "test:headless:chrome" : " KARMA_BROWSERS=ChromeHeadless yarn karma:run" ,
2424 "karma:run" : " karma start --singleRun" ,
2525 "karma:watch" : " karma start" ,
2626 "prepublish" : " yarn build" ,
27- "test:bs:all " : " yarn karma:run --useBrowserStack" ,
27+ "test:bs:modern " : " yarn karma:run --useBrowserStack" ,
2828 "test:bs:ie" : " yarn karma:run --useBrowserStack --runIeTests"
2929 },
3030 "husky" : {
You can’t perform that action at this time.
0 commit comments