native.yml 811 B

12345678910111213141516171819202122232425262728293031
  1. name: Native WebView
  2. on:
  3. workflow_dispatch:
  4. push:
  5. pull_request:
  6. jobs:
  7. native:
  8. strategy:
  9. fail-fast: false
  10. matrix:
  11. os: [windows-latest, macos-latest]
  12. runs-on: ${{ matrix.os }}
  13. timeout-minutes: 15
  14. steps:
  15. - uses: actions/checkout@v4
  16. - uses: actions/setup-go@v5
  17. with:
  18. go-version: '1.25.0'
  19. cache: false
  20. - name: Unit tests
  21. env:
  22. CGO_ENABLED: '0'
  23. CFBROWSER_INTEGRATION: '0'
  24. run: go test -buildvcs=false -mod=vendor ./... -count=1 -timeout=120s
  25. - name: Windows native runtime tests
  26. if: runner.os == 'Windows'
  27. shell: pwsh
  28. run: ./scripts/test-native.ps1
  29. - name: macOS native runtime tests
  30. if: runner.os == 'macOS'
  31. run: sh scripts/test-native.sh