Skip to content

Commit

Permalink
fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
peccu committed Jan 4, 2024
1 parent cd858d4 commit 59b53de
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,33 +48,33 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Install Playwright Browsers
run: bunx playwright install --with-deps
- name: Run Playwright tests. If some error found, you maybe forgot to update snapshots
run: bunx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Add notes into GitHub Step Summary
if: always()
run: |
echo '# preview result' >> $GITHUB_STEP_SUMMARY
echo '```sh' >> $GITHUB_STEP_SUMMARY
echo 'mkdir tmp' >> $GITHUB_STEP_SUMMARY
echo 'cd tmp' >> $GITHUB_STEP_SUMMARY
echo 'mv ~/Downloads/playwright-report.zip ./' >> $GITHUB_STEP_SUMMARY
echo 'unzip playwright-report.zip' >> $GITHUB_STEP_SUMMARY
echo 'bunx vite preview --host 0.0.0.0 --outDir .' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Install Playwright Browsers
run: bunx playwright install --with-deps
- name: Run Playwright tests. If some error found, you maybe forgot to update snapshots
run: bunx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Add notes into GitHub Step Summary
if: always()
run: |
echo '# preview result' >> $GITHUB_STEP_SUMMARY
echo '```sh' >> $GITHUB_STEP_SUMMARY
echo 'mkdir tmp' >> $GITHUB_STEP_SUMMARY
echo 'cd tmp' >> $GITHUB_STEP_SUMMARY
echo 'mv ~/Downloads/playwright-report.zip ./' >> $GITHUB_STEP_SUMMARY
echo 'unzip playwright-report.zip' >> $GITHUB_STEP_SUMMARY
echo 'bunx vite preview --host 0.0.0.0 --outDir .' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
# output to github
# use container
Expand Down

0 comments on commit 59b53de

Please sign in to comment.