-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Semantic-Org/Semantic-UI-…
…React into patch-5 � Conflicts: � docs/src/components/ComponentDoc/ComponentExample/ComponentExample.js � package.json � src/modules/Modal/Modal.js � yarn.lock
- Loading branch information
Showing
258 changed files
with
10,906 additions
and
9,472 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
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,54 +1,87 @@ | ||
version: 2 | ||
version: 2.1 | ||
|
||
general: | ||
branches: | ||
ignore: | ||
- gh-pages | ||
|
||
docker_defaults: &docker_defaults | ||
docker: | ||
- image: circleci/node:12-browsers | ||
working_directory: ~/project/semantic-ui-react | ||
|
||
restore_node_modules: &restore_node_modules | ||
restore_cache: | ||
name: Restore node_modules cache | ||
keys: | ||
- v3-node-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
- v3-node-{{ .Branch }}- | ||
- v3-node- | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:8-browsers | ||
environment: | ||
TZ: "/usr/share/zoneinfo/America/Los_Angeles" | ||
bootstrap: | ||
<<: *docker_defaults | ||
steps: | ||
- run: | ||
name: Update yarn | ||
command: | | ||
# remove default yarn | ||
sudo rm -rf $(dirname $(which yarn))/yarn* | ||
# download latest | ||
rm -rf ~/.yarn | ||
curl -o- -L https://yarnpkg.com/install.sh | bash | ||
echo 'export PATH="${PATH}:${HOME}/.yarn/bin"' >> $BASH_ENV | ||
- checkout | ||
# because we don't invoke npm (we use yarn) we need to add npm bin to PATH manually | ||
- run: | ||
name: Add npm bin to PATH | ||
command: echo 'export PATH="${PATH}:$(npm bin)"' >> $BASH_ENV | ||
- restore_cache: | ||
keys: | ||
- v2-dependencies-{{ checksum "yarn.lock" }} | ||
- *restore_node_modules | ||
- run: | ||
name: Install Dependencies | ||
command: yarn | ||
command: yarn install --frozen-lockfile | ||
- save_cache: | ||
key: v2-dependencies-{{ checksum "yarn.lock" }} | ||
name: Save yarn cache | ||
key: v3-yarn-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
paths: | ||
- ~/.cache/yarn | ||
- run: | ||
name: Lint TypeScript | ||
command: yarn tsd:lint | ||
- run: | ||
name: Test TypeScript | ||
command: yarn tsd:test | ||
- .cache/yarn | ||
- save_cache: | ||
name: Save node_modules cache | ||
key: v3-node-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
paths: | ||
- node_modules/ | ||
- run: | ||
name: Lint JavaScript | ||
command: yarn lint | ||
name: Remove node_modules to cleanup workspace | ||
command: rm -r node_modules/ | ||
- persist_to_workspace: | ||
root: ~/project | ||
paths: | ||
- semantic-ui-react | ||
|
||
test: | ||
<<: *docker_defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/project | ||
- *restore_node_modules | ||
- run: | ||
name: Test JavaScript | ||
command: yarn test | ||
- run: | ||
name: Report coverage | ||
command: bash <(curl -s https://codecov.io/bash) | ||
- run: | ||
name: Test TypeScript | ||
command: yarn tsd:test | ||
- run: | ||
name: Test UMD bundle | ||
command: yarn test:umd | ||
|
||
lint: | ||
<<: *docker_defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/project | ||
- *restore_node_modules | ||
- run: | ||
name: Report coverage | ||
command: bash <(curl -s https://codecov.io/bash) | ||
name: Lint | ||
command: yarn lint | ||
|
||
workflows: | ||
version: 2 | ||
main: | ||
jobs: | ||
- bootstrap | ||
- test: | ||
requires: | ||
- bootstrap | ||
- lint: | ||
requires: | ||
- bootstrap |
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,4 @@ | ||
bundle-size/dist/* | ||
coverage/* | ||
dist/* | ||
docs/dist/* | ||
|
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: PR Health | ||
on: | ||
pull_request: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
|
||
jobs: | ||
label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: mheap/github-action-required-labels@v1 | ||
with: | ||
mode: exactly | ||
count: 1 | ||
labels: "PR: Breaking Change :boom:, PR: New Feature :rocket:, PR: Bug Fix :bug:, PR: Docs :memo:, PR: Internal :house:" |
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,35 @@ | ||
name: Bundle Size | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
size: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI_JOB_NUMBER: 1 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
|
||
- name: Cache node_modules | ||
uses: actions/cache@v1 | ||
id: yarn-cache-node-modules | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-yarn-cache-node-modules-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-cache-node-modules- | ||
- name: Yarn install | ||
if: steps.yarn-cache-node-modules.outputs.cache-hit != 'true' | ||
run: yarn install --frozen-lockfile | ||
|
||
- uses: andresz1/[email protected] | ||
with: | ||
build_script: build:size | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = require('glob') | ||
.sync('bundle-size/dist/*.size.js', { | ||
cwd: __dirname, | ||
}) | ||
.map((file) => ({ path: file, gzip: false })) |
Oops, something went wrong.