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 2, 2024
1 parent f8db8b8 commit 22f175e
Show file tree
Hide file tree
Showing 111 changed files with 15,392 additions and 39,227 deletions.
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules/
lib/
build/
dist/
*.current.png
*.diff.png
tsconfig.tsbuildinfo
Expand Down
6 changes: 5 additions & 1 deletion project/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
]
],
"rules": {
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"react/react-in-jsx-scope": "off"
}
}
1 change: 1 addition & 0 deletions project/.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
Loading

0 comments on commit 22f175e

Please sign in to comment.