Skip to content

Commit

Permalink
Update stop server script, trying cacheing playerwright browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewgdewar committed Jan 29, 2025
1 parent 4bb07aa commit 8852182
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/content-sources-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,15 @@ jobs:
working-directory: content-sources-frontend
run: yarn install

- name: Cache Playwright browsers
id: cache-playwright-browsers
uses: actions/cache@v3
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-playwright-
- name: Install front-end Playwright Browsers
working-directory: content-sources-frontend
run: yarn playwright install --with-deps
Expand Down Expand Up @@ -198,8 +207,13 @@ jobs:
working-directory: content-sources-frontend
if: always() # Ensures this step runs even if previous steps fail
run: |
ps aux | grep 'yarn start:stage' | grep -v grep | awk '{print $2}' | xargs kill -9
PIDS=$(ps aux | grep 'yarn start:stage' | grep -v grep | awk '{print $2}')
echo "PIDs to kill: $PIDS"
if [ -n "$PIDS" ]; then
kill -9 $PIDS
else
echo "No PIDs found to kill"
fi
# - name: Run front-end Playwright tests
# working-directory: content-sources-frontend
# run: yarn playwright test
Expand Down

0 comments on commit 8852182

Please sign in to comment.