Skip to content

Commit

Permalink
Update ci.yml for node v18
Browse files Browse the repository at this point in the history
  • Loading branch information
bartstc committed Oct 22, 2023
1 parent b85ff6a commit 7550a6a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ jobs:
version: 8
run_install: false

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
cache: "pnpm"
# https://github.com/storybookjs/test-runner/issues/301
# - name: Install Node.js
# uses: actions/setup-node@v3
# with:
# node-version: "16.x"
# cache: "pnpm"

- name: Get pnpm store directory
id: pnpm-cache
Expand All @@ -57,7 +58,7 @@ jobs:
run: pnpm install --no-frozen-lockfile --ignore-scripts

- name: Install Playwright
run: npx playwright install --with-deps
run: pnpm exec playwright install --with-deps

- name: Build Storybook
run: pnpm build-storybook --quiet
Expand All @@ -66,7 +67,7 @@ jobs:
run: |
pnpm exec concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"pnpm exec http-server storybook-static --port 6006 --silent" \
"pnpm exec wait-on tcp:6006 && pnpm exec test-storybook --json --outputFile storybook-report.json a"
"pnpm exec wait-on tcp:127.0.0.1:6006 && pnpm exec test-storybook --json --outputFile storybook-report.json a"
- name: Upload json report artifacts
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -127,7 +128,7 @@ jobs:
- name: Get build artifacts
uses: actions/download-artifact@v3
with:
name: build # will download a zipped build and unzip it
name: build
- name: Outputs content
run: ls
- name: Deploy
Expand Down

0 comments on commit 7550a6a

Please sign in to comment.