-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
9,536 additions
and
13,681 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 |
---|---|---|
|
@@ -30,24 +30,21 @@ jobs: | |
with: | ||
node-version: "*" | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache yarn cache | ||
- name: Cache pnpm modules | ||
uses: actions/cache@v3 | ||
id: yarn-cache #`steps.yarn-cache.outputs.cache-hit != 'true' | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
${{ runner.os }}- | ||
- name: Install Dependencies | ||
run: yarn install | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 6.32.4 | ||
run_install: true | ||
|
||
- name: Run lint | ||
run: yarn eslint . --ext .js,.jsx,.ts,.tsx --fix | ||
run: pnpm eslint . --ext .js,.jsx,.ts,.tsx --fix | ||
|
||
types: | ||
name: Check Types | ||
|
@@ -62,24 +59,21 @@ jobs: | |
with: | ||
node-version: "*" | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache yarn cache | ||
- name: Cache pnpm modules | ||
uses: actions/cache@v3 | ||
id: yarn-cache #`steps.yarn-cache.outputs.cache-hit != 'true' | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
${{ runner.os }}- | ||
- name: Install Dependencies | ||
run: yarn install | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 6.32.4 | ||
run_install: true | ||
|
||
- name: check types | ||
run: "yarn tsc --noEmit" | ||
run: "pnpm tsc --noEmit" | ||
|
||
unit-test: | ||
name: Unit Test | ||
|
@@ -95,26 +89,18 @@ jobs: | |
with: | ||
node-version: "*" | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache yarn cache | ||
- name: Cache pnpm modules | ||
uses: actions/cache@v3 | ||
id: yarn-cache #`steps.yarn-cache.outputs.cache-hit != 'true' | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
${{ runner.os }}- | ||
- name: Install Dependencies | ||
run: yarn install | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 6.32.4 | ||
run_install: true | ||
|
||
- name: Run Test | ||
run: CI=true yarn jest --coverage | ||
|
||
- name: Upload coverage to Codecov | ||
run: bash <(curl -s https://codecov.io/bash) -C $GITHUB_SHA -B ${GITHUB_REF#refs/heads/} -Z | ||
env: | ||
CODECOV_TOKEN: 98cfb3ef-e3ad-4ffc-aaa1-314731222d1b | ||
run: CI=true pnpm jest --coverage |
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 |
---|---|---|
|
@@ -27,73 +27,30 @@ jobs: | |
with: | ||
node-version: "*" | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache yarn cache | ||
- name: Cache pnpm modules | ||
uses: actions/cache@v3 | ||
id: yarn-cache #`steps.yarn-cache.outputs.cache-hit != 'true' | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
${{ runner.os }}- | ||
- name: Install Dependencies | ||
run: yarn install | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 6.32.4 | ||
run_install: true | ||
|
||
- name: Build packages | ||
run: yarn build | ||
|
||
# - name: Essential Features Test for DnD React APP - Firefox | ||
# uses: cypress-io/github-action@v2 | ||
# with: | ||
# project: ./packages/dnd | ||
# start: yarn workspace dflex-react-dnd start | ||
# wait-on: "http://localhost:3001/" | ||
# browser: firefox | ||
# headless: true | ||
# spec: "packages/dnd/cypress/integration/essential/**/*.spec.js" | ||
# env: | ||
# Cypress_isNextJS: false | ||
# Cypress_extended: true | ||
|
||
# - name: SSR Test - Testing DnD work with NextJS | ||
# uses: cypress-io/github-action@v2 | ||
# with: | ||
# project: ./packages/dnd | ||
# start: yarn workspace dflex-next-dnd dev | ||
# wait-on: "http://localhost:3000/" | ||
# browser: chrome | ||
# headless: true | ||
# spec: "packages/dnd/cypress/integration/nextjs/**/*.spec.js" | ||
# env: | ||
# Cypress_isNextJS: true | ||
# Cypress_extended: false | ||
|
||
# - name: Extended Features Test for DnD React APP - Chrome | ||
# uses: cypress-io/github-action@v2 | ||
# with: | ||
# project: ./packages/dnd | ||
# start: yarn workspace dflex-react-dnd start | ||
# wait-on: "http://localhost:3001/" | ||
# browser: chrome | ||
# headless: true | ||
# spec: | | ||
# packages/dnd/cypress/integration/differentHeights/**/*.spec.js | ||
# packages/dnd/cypress/integration/restrictions/**/*.spec.js | ||
# packages/dnd/cypress/integration/extended/**/*.spec.js | ||
# env: | ||
# Cypress_isNextJS: false | ||
# Cypress_extended: false | ||
run: pnpm build | ||
|
||
- name: Testing all features for DnD with React APP - Chrome | ||
uses: cypress-io/github-action@v2 | ||
with: | ||
project: ./packages/dnd | ||
start: yarn workspace dflex-react-dnd start | ||
install: false | ||
working-directory: packages/dnd | ||
start: pnpm run server -F @dflex/dnd | ||
wait-on: "http://localhost:3001/" | ||
wait-on-timeout: 120 | ||
browser: chrome | ||
headless: true | ||
env: | ||
|
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,3 @@ | ||
link-workspace-packages = true | ||
prefer-workspace-packages = true | ||
recursive-install = true |
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
Oops, something went wrong.