Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates #1010

Merged
merged 6 commits into from
Mar 18, 2024
Merged

Updates #1010

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 19 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,35 @@ jobs:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Cache Packages
id: cache
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
path: ${{ env.STORE_PATH }}
key: "${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}"
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install Packages
run: npm ci
run: pnpm install
timeout-minutes: 3

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

- name: Validate
if: "!startsWith(github.ref, 'refs/tags/')"
run: npm run validate
run: pnpm run validate
timeout-minutes: 5

- name: Save Playwright Report
Expand Down
3 changes: 0 additions & 3 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

./node_modules/.bin/repo-tools install-packages
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

./node_modules/.bin/repo-tools check-remote && ./node_modules/.bin/lint-staged && npm run e2e
./node_modules/.bin/repo-tools check-remote && npm run validate
40 changes: 0 additions & 40 deletions jest.config.ts

This file was deleted.