Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Dec 24, 2024
1 parent 2e8a896 commit 367d2a2
Show file tree
Hide file tree
Showing 8 changed files with 533 additions and 1,510 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ jobs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v3

- name: Enable Corepack
run: corepack enable

- name: Prepare repository
run: git fetch --unshallow --tags

- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Setup Node.js
uses: actions/setup-node@v4

- name: Install dependencies
uses: bahmutov/npm-install@v1
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,26 @@ on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4

- name: Enable Corepack
run: corepack enable

- name: Setup Node.js
uses: actions/setup-node@v4

- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Run tests in webpack example
run: |
yarn build
yarn install
npx playwright install --with-deps
yarn test-storybook:ci-coverage
working-directory: examples/webpack5

- name: Run tests in vite example
run: |
yarn build
yarn install
npx playwright install --with-deps
yarn test-storybook:ci-coverage
working-directory: examples/vite

Expand Down
Binary file modified .yarn/install-state.gz
Binary file not shown.
Binary file modified examples/vite/.yarn/install-state.gz
Binary file not shown.
Binary file modified examples/webpack5/.yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"webpack-dev-server": "latest"
},
"devDependencies": {
"concurrently": "^9.1.0",
"@storybook/addon-coverage": "link:../..",
"@storybook/addon-essentials": "^8.4.7",
"@storybook/addon-interactions": "^8.4.7",
Expand All @@ -40,6 +39,7 @@
"@storybook/react-webpack5": "^8.4.7",
"@storybook/test": "^8.4.7",
"@storybook/test-runner": "^0.21.0",
"concurrently": "^9.1.0",
"storybook": "^8.4.7",
"wait-on": "^8.0.1"
}
Expand Down
Loading

0 comments on commit 367d2a2

Please sign in to comment.