-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
16 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,21 +34,6 @@ jobs: | |
env: | ||
VITE_OFFLINE_VERSION: true | ||
run: npm run build | ||
- name: Push offline mode to master | ||
run: | | ||
git config --global user.name 'GitHub Actions' | ||
git config --global user.email '[email protected]' | ||
git add . | ||
# Check for changes | ||
if git diff-index --quiet HEAD --; then | ||
# No changes | ||
echo "No changes to commit" | ||
else | ||
# Changes detected | ||
git commit -m "Add benchmarks / dist folder" | ||
git push origin master | ||
fi | ||
- name: Get installed Playwright version | ||
id: playwright-version | ||
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package.json').devDependencies['@playwright/test'])")" >> $GITHUB_ENV | ||
|
@@ -65,6 +50,21 @@ jobs: | |
if: steps.playwright-cache.outputs.cache-hit == 'true' | ||
- name: Run Playwright deployment tests | ||
run: npx playwright test site-tests.spec.ts | ||
- name: Push offline mode to master | ||
run: | | ||
git config --global user.name 'GitHub Actions' | ||
git config --global user.email '[email protected]' | ||
git add . | ||
# Check for changes | ||
if git diff-index --quiet HEAD --; then | ||
# No changes | ||
echo "No changes to commit" | ||
else | ||
# Changes detected | ||
git commit -m "Add benchmarks / dist folder" | ||
git push origin master | ||
fi | ||
- name: Build for github pages | ||
run: npm run build | ||
- name: Setup Pages | ||
|
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
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