test-dot-net.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: test-dot-net
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths:
  7. - '.github/workflows/test-dot-net'
  8. - 'dotnet-examples/**'
  9. pull_request:
  10. branches:
  11. - master
  12. paths:
  13. - '.github/workflows/test-dot-net'
  14. - 'dotnet-examples/**'
  15. workflow_dispatch:
  16. schedule:
  17. # minute (0-59)
  18. # hour (0-23)
  19. # day of the month (1-31)
  20. # month (1-12)
  21. # day of the week (0-6)
  22. # nightly build at 23:50 UTC time every day
  23. - cron: "50 23 * * *"
  24. concurrency:
  25. group: test-dot-net-${{ github.ref }}
  26. cancel-in-progress: true
  27. permissions:
  28. contents: read
  29. jobs:
  30. test-dot-net:
  31. runs-on: ${{ matrix.os }}
  32. strategy:
  33. fail-fast: false
  34. matrix:
  35. os: [ubuntu-latest, macos-latest, windows-latest]
  36. steps:
  37. - uses: actions/checkout@v2
  38. with:
  39. fetch-depth: 0
  40. - name: Setup .NET 6.0
  41. uses: actions/setup-dotnet@v4
  42. with:
  43. dotnet-version: 6.0.x
  44. - name: Check dotnet
  45. run: dotnet --info
  46. - name: Decode a file
  47. shell: bash
  48. run: |
  49. cd dotnet-examples/decode-file
  50. ./run.sh