Skip to content

Commit

Permalink
Use pnpx exec
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Oct 2, 2024
1 parent 1075936 commit f4ce04e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
pnpm i --frozen-lockfile
- name: Install Playwright browser ${{ matrix.playwright-browser }}
working-directory: ${{ env.frontend-directory }}
run: pnpx playwright install --with-deps ${{ matrix.playwright-browser }}
run: pnpx exec playwright install --with-deps ${{ matrix.playwright-browser }}
- name: Create frontend environment variables file
working-directory: ${{ env.frontend-directory }}
run: |
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
run: pnpm run build
- name: Run tests with browser ${{ matrix.playwright-browser }}
working-directory: ${{ env.frontend-directory }}
run: pnpx playwright test --project=${{ matrix.playwright-browser }}
run: pnpx exec playwright test --project=${{ matrix.playwright-browser }}
env:
CI: true
- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
run: make pre-build
- name: Install Playwright Browsers
working-directory: ${{ env.enterprise-frontend-build-directory }}
run: pnpx playwright install --with-deps
run: pnpx exec playwright install --with-deps
- name: Create frontend environment variables file
working-directory: ${{ env.enterprise-frontend-build-directory }}
run: |
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
run: pnpm run build
- name: Run tests with browser ${{ matrix.playwright-browser }}
working-directory: ${{ env.enterprise-frontend-build-directory }}
run: pnpx playwright test --project=${{ matrix.playwright-browser }}
run: pnpx exec playwright test --project=${{ matrix.playwright-browser }}
env:
CI: true
- uses: actions/upload-artifact@v4
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/startup-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
pnpm i --frozen-lockfile
- name: Install Playwright Browsers
working-directory: ${{ env.frontend-directory }}
run: pnpx playwright install --with-deps
run: pnpx exec playwright install --with-deps
- name: Create frontend environment variables file
working-directory: ${{ env.frontend-directory }}
run: |
Expand Down Expand Up @@ -87,12 +87,9 @@ jobs:
export $(grep -v '^#' .env | xargs)
poetry run python manage.py createsuperuser --noinput
nohup poetry run python manage.py runserver &
- name: Build frontend
working-directory: ${{ env.frontend-directory }}
run: pnpm run build
- name: Run tests
working-directory: ${{ env.frontend-directory }}
run: pnpx playwright test tests/functional/startup.test.ts
run: pnpx exec playwright test tests/functional/startup.test.ts
- uses: actions/upload-artifact@v4
if: always()
with:
Expand All @@ -117,7 +114,7 @@ jobs:
pnpm i --frozen-lockfile
- name: Install Playwright Browsers
working-directory: ${{ env.frontend-directory }}
run: pnpx playwright install --with-deps
run: pnpx exec playwright install --with-deps
- name: Build the Docker app
run: docker compose -f docker-compose-build.yml up -d
- name: Create backend environment variables file
Expand Down Expand Up @@ -186,7 +183,7 @@ jobs:
run: make pre-build
- name: Install Playwright Browsers
working-directory: ${{ env.enterprise-frontend-build-directory }}
run: pnpx playwright install --with-deps
run: pnpx exec playwright install --with-deps
- name: Create frontend environment variables file
working-directory: ${{ env.enterprise-frontend-build-directory }}
run: |
Expand Down Expand Up @@ -222,7 +219,7 @@ jobs:
run: pnpm run build
- name: Run tests
working-directory: ${{ env.enterprise-frontend-build-directory }}
run: pnpx playwright test tests/functional/startup.test.ts
run: pnpx exec playwright test tests/functional/startup.test.ts
- uses: actions/upload-artifact@v4
if: always()
with:
Expand All @@ -245,7 +242,7 @@ jobs:
run: make pre-build
- name: Install Playwright Browsers
working-directory: ${{ env.enterprise-frontend-build-directory }}
run: pnpx playwright install --with-deps
run: pnpx exec playwright install --with-deps
- name: Build the Docker app
run: docker compose -f enterprise/docker-compose-build.yml up -d
- name: Create backend environment variables file
Expand Down

0 comments on commit f4ce04e

Please sign in to comment.