fix(deps): update all non-major dependencies [] #511
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
name: Basic Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
test: | |
name: "Run eslint / type-check / test" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
run_install: false | |
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4 | |
with: | |
node-version-file: '.tool-versions' | |
cache: pnpm | |
cache-dependency-path: pnpm-lock.yaml | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile --ignore-scripts | |
- name: eslint | |
run: pnpm lint | |
- name: tsc | |
run: pnpm type-check | |
- name: test | |
run: pnpm test | |
storybook: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
run_install: false | |
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4 | |
with: | |
node-version-file: '.tool-versions' | |
cache: pnpm | |
cache-dependency-path: pnpm-lock.yaml | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile --ignore-scripts | |
- name: Build Storybook | |
run: pnpm build-storybook --quiet | |
- name: Add package for storybook test | |
run: pnpm add -D concurrently wait-on http-server | |
- name: Install Playwright | |
run: pnpm playwright install chromium # or --with-deps | |
- name: Serve Storybook and run tests | |
run: | | |
pnpm concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ | |
"pnpm http-server storybook-static --port 6006 --silent" \ | |
"pnpm wait-on tcp:127.0.0.1:6006 && pnpm test-storybook" |