-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate package manager from Yarn to PNPM
- Loading branch information
1 parent
78beca1
commit 212af54
Showing
7 changed files
with
2,901 additions
and
2,442 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,31 +11,33 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9 | ||
run_install: false | ||
- name: Set-up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
cache: 'yarn' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cache | ||
key: dependencies-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | ||
cache: 'pnpm' | ||
- name: Set Playwright version | ||
id: playwright-version | ||
run: | | ||
echo "playwright=$(cat package.json | grep @playwright/test | head -1 | awk -F: '{ print $2 }' | sed 's/[", ]//g')" >> $GITHUB_OUTPUT | ||
- name: Cache Docker images | ||
uses: ScribeMD/[email protected] | ||
with: | ||
key: docker-v1-${{ runner.os }}-${{ hashFiles('.hass/config/.HA_VERSION', '.playwright_docker_version') }} | ||
key: docker-v1-${{ runner.os }}-${{ hashFiles('.hass/config/.HA_VERSION') }}-${{ steps.playwright-version.outputs.playwright }} | ||
- name: Install deps | ||
run: yarn install --frozen-lockfile | ||
run: pnpm install | ||
- name: E2E tests | ||
run: | | ||
touch .env | ||
echo HA_TOKEN=${{ secrets.CYPRESS_HA_TOKEN }} >> .env | ||
yarn test:all | ||
pnpm test:all | ||
- name: Create coverage | ||
run: yarn coverage:report | ||
run: pnpm coverage:report | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,30 +9,33 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9 | ||
run_install: false | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
cache: 'yarn' | ||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cache | ||
key: dependencies-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | ||
cache: 'pnpm' | ||
- name: Set Playwright version | ||
id: playwright-version | ||
run: | | ||
echo "playwright=$(cat package.json | grep @playwright/test | head -1 | awk -F: '{ print $2 }' | sed 's/[", ]//g')" >> $GITHUB_OUTPUT | ||
- name: Cache Docker images | ||
uses: ScribeMD/[email protected] | ||
with: | ||
key: docker-v1-${{ runner.os }}-${{ hashFiles('.hass/config/.HA_VERSION', '.playwright_docker_version') }} | ||
key: docker-v1-${{ runner.os }}-${{ hashFiles('.hass/config/.HA_VERSION') }}-${{ steps.playwright-version.outputs.playwright }} | ||
- name: Install | ||
run: yarn install --frozen-lockfile | ||
run: pnpm install | ||
- name: E2E tests | ||
run: | | ||
touch .env | ||
echo HA_TOKEN=${{ secrets.CYPRESS_HA_TOKEN }} >> .env | ||
yarn test:all | ||
pnpm test:all | ||
- name: Create coverage | ||
run: yarn coverage:report | ||
run: pnpm coverage:report | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
|
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
Oops, something went wrong.