2
0

test.yml 895 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: test
  2. on:
  3. push:
  4. branches:
  5. - dev
  6. pull_request:
  7. workflow_dispatch:
  8. jobs:
  9. test:
  10. runs-on: blacksmith-4vcpu-ubuntu-2404
  11. steps:
  12. - name: Checkout repository
  13. uses: actions/checkout@v4
  14. with:
  15. token: ${{ secrets.GITHUB_TOKEN }}
  16. - name: Setup Bun
  17. uses: ./.github/actions/setup-bun
  18. - name: run
  19. run: |
  20. git config --global user.email "[email protected]"
  21. git config --global user.name "opencode"
  22. # Ensure generated embed file exists for typecheck with correct shape
  23. mkdir -p packages/opencode/src/webgui
  24. cat << 'EOF' > packages/opencode/src/webgui/embed.generated.ts
  25. export const embeddedWebGui = [
  26. { path: "", data: "" },
  27. ] as const
  28. EOF
  29. bun turbo typecheck
  30. bun turbo test
  31. env:
  32. CI: true