You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.1 KiB

3 years ago
3 years ago
3 years ago
  1. name: Windows
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. paths:
  7. - '*.sh'
  8. - '.github/workflows/Windows.yml'
  9. pull_request:
  10. branches:
  11. - dev
  12. paths:
  13. - '*.sh'
  14. - '.github/workflows/Windows.yml'
  15. jobs:
  16. Windows:
  17. strategy:
  18. matrix:
  19. include:
  20. - TEST_ACME_Server: "LetsEncrypt.org_test"
  21. CA_ECDSA: ""
  22. CA: ""
  23. CA_EMAIL: ""
  24. TEST_PREFERRED_CHAIN: (STAGING) Pretend Pear X1
  25. #- TEST_ACME_Server: "ZeroSSL.com"
  26. # CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
  27. # CA: "ZeroSSL RSA Domain Secure Site CA"
  28. # CA_EMAIL: "githubtest@acme.sh"
  29. # TEST_PREFERRED_CHAIN: ""
  30. runs-on: windows-latest
  31. env:
  32. TEST_ACME_Server: ${{ matrix.TEST_ACME_Server }}
  33. CA_ECDSA: ${{ matrix.CA_ECDSA }}
  34. CA: ${{ matrix.CA }}
  35. CA_EMAIL: ${{ matrix.CA_EMAIL }}
  36. TEST_LOCAL: 1
  37. #The 80 port is used by Windows server, we have to use a custom port, tunnel will also use this port.
  38. Le_HTTPPort: 8888
  39. TEST_PREFERRED_CHAIN: ${{ matrix.TEST_PREFERRED_CHAIN }}
  40. steps:
  41. - name: Set git to use LF
  42. run: |
  43. git config --global core.autocrlf false
  44. - uses: actions/checkout@v2
  45. - name: Install cygwin base packages with chocolatey
  46. run: |
  47. choco config get cacheLocation
  48. choco install --no-progress cygwin
  49. shell: cmd
  50. - name: Install cygwin additional packages
  51. run: |
  52. C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P socat,curl,cron,unzip,git,xxd
  53. shell: cmd
  54. - name: Set ENV
  55. shell: cmd
  56. run: |
  57. echo PATH=C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin;%PATH% >> %GITHUB_ENV%
  58. - name: Check ENV
  59. shell: cmd
  60. run: |
  61. echo "PATH=%PATH%"
  62. - name: Clone acmetest
  63. shell: cmd
  64. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  65. - name: Run acmetest
  66. shell: cmd
  67. run: cd ../acmetest && bash.exe -c ./letest.sh