Skip to content

Commit

Permalink
WIP: upgrade to sigma v3
Browse files Browse the repository at this point in the history
  • Loading branch information
sim51 committed Apr 3, 2024
1 parent f8db8b8 commit 8d92480
Show file tree
Hide file tree
Showing 292 changed files with 38,533 additions and 75,290 deletions.
7 changes: 6 additions & 1 deletion project/.eslintrc → .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
]
],
"ignorePatterns":["*.d.ts"],
"rules": {
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"react/react-in-jsx-scope": "off"
}
}
32 changes: 23 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,36 @@ jobs:
working-directory: ./project

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20

- name: Cache node_modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: "project/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('project/package-lock.json') }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: 16

- name: Install
run: npm install

- name: Playwright version
id: playwright-version
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').packages['node_modules/playwright'].version)")" >> $GITHUB_ENV

- name: Cache Playwright binaries
uses: actions/cache@v4
id: playwright-cache
with:
path: "~/.cache/ms-playwright"
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}

- name: Install Playwright Browsers
run: npx playwright install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'

- name: Build
run: npm run build

Expand All @@ -44,10 +58,10 @@ jobs:

- name: Uploading screenshots on failure
if: steps.test.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: failure-screenshots
path: project/packages/examples/test/e2e/screenshots/
path: project/packages/storybook/test-results

- name: Exit signal
if: steps.test.outcome == 'failure'
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
node_modules/
lib/
build/
dist/
*.current.png
*.diff.png
tsconfig.tsbuildinfo
website/docs/api
packages/website/docs/api
.docusaurus
.rollup.cache
storybook-static
1 change: 1 addition & 0 deletions project/.npmignore → .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ node_modules
docs
examples
demo
dist
test
.editorconfig
.eslintignore
Expand Down
File renamed without changes.
Loading

0 comments on commit 8d92480

Please sign in to comment.