Skip to content

feat: add park:add task and park:fix script for UI component management #58

feat: add park:add task and park:fix script for UI component management

feat: add park:add task and park:fix script for UI component management #58

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup mise
uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1
with:
install: true
cache: true
- name: Config mise
run: mise settings experimental=true
- name: Cache Bun dependencies
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
with:
path: |
~/.bun/install/cache
node_modules/.vite
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Install Playwright browsers
run: bunx playwright install --with-deps chromium
- name: Run CI checks
run: mise run ci
env:
CI: true
- name: Upload coverage reports
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: success()
with:
name: coverage-reports
path: coverage/
retention-days: 30
- name: Generate coverage summary
if: success()
run: |
if [ -f coverage/coverage-summary.json ]; then
echo "## Coverage Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`json" >> $GITHUB_STEP_SUMMARY
jq --arg cwd "$PWD/" 'walk(if type == "string" then gsub($cwd; "") else . end)' coverage/coverage-summary.json >> "$GITHUB_STEP_SUMMARY"
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
fi