package-smoke.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: Package Smoke
  2. on:
  3. workflow_dispatch:
  4. pull_request:
  5. branches: [main, master]
  6. paths:
  7. - '.github/workflows/package-smoke.yml'
  8. - 'package.json'
  9. - 'bun.lock'
  10. - 'bunfig.toml'
  11. - 'tsconfig.json'
  12. - 'oh-my-opencode-slim.schema.json'
  13. - 'LICENSE'
  14. - 'README*.md'
  15. - 'scripts/generate-schema.ts'
  16. - 'scripts/verify-opencode-host-smoke.ts'
  17. - 'scripts/verify-release-artifact.ts'
  18. - 'src/**'
  19. push:
  20. tags: ['v*']
  21. concurrency:
  22. group: ${{ github.workflow }}-${{ github.ref }}
  23. cancel-in-progress: true
  24. jobs:
  25. package-smoke:
  26. runs-on: ${{ matrix.os }}
  27. timeout-minutes: 15
  28. strategy:
  29. matrix:
  30. os: [ubuntu-latest, macos-latest]
  31. steps:
  32. - name: Checkout code
  33. uses: actions/checkout@v4
  34. - name: Setup Bun
  35. uses: oven-sh/setup-bun@v2
  36. - name: Install dependencies
  37. run: bun ci
  38. - name: Build
  39. run: bun run build
  40. - name: Verify packaged release artifact
  41. run: bun run verify:release
  42. - name: Verify OpenCode host smoke test
  43. run: bun run verify:host-smoke