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.

220 lines
6.5 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. name: LetsEncrypt
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. paths:
  7. - '**.sh'
  8. - '**.yml'
  9. - '!dnsapi/**'
  10. - '!deploy/**'
  11. - '!notify/**'
  12. pull_request:
  13. branches:
  14. - dev
  15. paths:
  16. - '**.sh'
  17. - '**.yml'
  18. - '!dnsapi/**'
  19. - '!deploy/**'
  20. - '!notify/**'
  21. jobs:
  22. Ubuntu:
  23. strategy:
  24. matrix:
  25. include:
  26. - TEST_ACME_Server: ""
  27. CA_ECDSA: ""
  28. CA: ""
  29. CA_EMAIL: ""
  30. - TEST_ACME_Server: "https://acme.zerossl.com/v2/DV90"
  31. CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
  32. CA: "ZeroSSL RSA Domain Secure Site CA"
  33. CA_EMAIL: "githubtest@acme.sh"
  34. runs-on: ubuntu-latest
  35. env:
  36. TEST_LOCAL: 1
  37. ACME_DIRECTORY: ${{ matrix.TEST_ACME_Server }}
  38. CA_ECDSA: ${{ matrix.CA_ECDSA }}
  39. CA: ${{ matrix.CA }}
  40. CA_EMAIL: ${{ matrix.CA_EMAIL }}
  41. steps:
  42. - uses: actions/checkout@v2
  43. - name: Install tools
  44. run: sudo apt-get install -y socat
  45. - name: Clone acmetest
  46. run: |
  47. cd .. \
  48. && git clone https://github.com/acmesh-official/acmetest.git \
  49. && cp -r acme.sh acmetest/
  50. - name: Run acmetest
  51. run: |
  52. cd ../acmetest \
  53. && sudo --preserve-env ./letest.sh
  54. MacOS:
  55. strategy:
  56. matrix:
  57. include:
  58. - TEST_ACME_Server: ""
  59. CA_ECDSA: ""
  60. CA: ""
  61. CA_EMAIL: ""
  62. - TEST_ACME_Server: "https://acme.zerossl.com/v2/DV90"
  63. CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
  64. CA: "ZeroSSL RSA Domain Secure Site CA"
  65. CA_EMAIL: "githubtest@acme.sh"
  66. runs-on: macos-latest
  67. env:
  68. TEST_LOCAL: 1
  69. ACME_DIRECTORY: ${{ matrix.TEST_ACME_Server }}
  70. CA_ECDSA: ${{ matrix.CA_ECDSA }}
  71. CA: ${{ matrix.CA }}
  72. CA_EMAIL: ${{ matrix.CA_EMAIL }}
  73. steps:
  74. - uses: actions/checkout@v2
  75. - name: Install tools
  76. run: brew install socat
  77. - name: Clone acmetest
  78. run: |
  79. cd .. \
  80. && git clone https://github.com/acmesh-official/acmetest.git \
  81. && cp -r acme.sh acmetest/
  82. - name: Run acmetest
  83. run: |
  84. cd ../acmetest \
  85. && sudo --preserve-env ./letest.sh
  86. Windows:
  87. strategy:
  88. matrix:
  89. include:
  90. - TEST_ACME_Server: ""
  91. CA_ECDSA: ""
  92. CA: ""
  93. CA_EMAIL: ""
  94. - TEST_ACME_Server: "https://acme.zerossl.com/v2/DV90"
  95. CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
  96. CA: "ZeroSSL RSA Domain Secure Site CA"
  97. CA_EMAIL: "githubtest@acme.sh"
  98. runs-on: windows-latest
  99. env:
  100. ACME_DIRECTORY: ${{ matrix.TEST_ACME_Server }}
  101. CA_ECDSA: ${{ matrix.CA_ECDSA }}
  102. CA: ${{ matrix.CA }}
  103. CA_EMAIL: ${{ matrix.CA_EMAIL }}
  104. TEST_LOCAL: 1
  105. #The 80 port is used by Windows server, we have to use a custom port, tunnel will also use this port.
  106. Le_HTTPPort: 8888
  107. steps:
  108. - name: Set git to use LF
  109. run: |
  110. git config --global core.autocrlf false
  111. - uses: actions/checkout@v2
  112. - name: Install cygwin base packages with chocolatey
  113. run: |
  114. choco config get cacheLocation
  115. choco install --no-progress cygwin
  116. shell: cmd
  117. - name: Install cygwin additional packages
  118. run: |
  119. C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P socat,curl,cron,unzip,git
  120. shell: cmd
  121. - name: Set ENV
  122. shell: cmd
  123. run: |
  124. echo PATH=C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin >> %GITHUB_ENV%
  125. - name: Check ENV
  126. shell: cmd
  127. run: |
  128. echo "PATH=%PATH%"
  129. - name: Clone acmetest
  130. shell: cmd
  131. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  132. - name: Run acmetest
  133. shell: cmd
  134. run: cd ../acmetest && bash.exe -c ./letest.sh
  135. FreeBSD:
  136. strategy:
  137. matrix:
  138. include:
  139. - TEST_ACME_Server: ""
  140. CA_ECDSA: ""
  141. CA: ""
  142. CA_EMAIL: ""
  143. - TEST_ACME_Server: "https://acme.zerossl.com/v2/DV90"
  144. CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
  145. CA: "ZeroSSL RSA Domain Secure Site CA"
  146. CA_EMAIL: "githubtest@acme.sh"
  147. runs-on: macos-latest
  148. env:
  149. TEST_LOCAL: 1
  150. ACME_DIRECTORY: ${{ matrix.TEST_ACME_Server }}
  151. CA_ECDSA: ${{ matrix.CA_ECDSA }}
  152. CA: ${{ matrix.CA }}
  153. CA_EMAIL: ${{ matrix.CA_EMAIL }}
  154. steps:
  155. - uses: actions/checkout@v2
  156. - uses: vmactions/cf-tunnel@v0.0.2
  157. id: tunnel
  158. with:
  159. protocol: http
  160. port: 8080
  161. - name: Set envs
  162. run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
  163. - name: Clone acmetest
  164. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  165. - uses: vmactions/freebsd-vm@v0.1.4
  166. with:
  167. envs: 'TEST_LOCAL TestingDomain ACME_DIRECTORY CA_ECDSA CA CA_EMAIL'
  168. nat: |
  169. "8080": "80"
  170. prepare: pkg install -y socat curl
  171. usesh: true
  172. run: |
  173. cd ../acmetest \
  174. && ./letest.sh
  175. Solaris:
  176. strategy:
  177. matrix:
  178. include:
  179. - TEST_ACME_Server: ""
  180. CA_ECDSA: ""
  181. CA: ""
  182. CA_EMAIL: ""
  183. - TEST_ACME_Server: "https://acme.zerossl.com/v2/DV90"
  184. CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
  185. CA: "ZeroSSL RSA Domain Secure Site CA"
  186. CA_EMAIL: "githubtest@acme.sh"
  187. runs-on: macos-latest
  188. env:
  189. TEST_LOCAL: 1
  190. ACME_DIRECTORY: ${{ matrix.TEST_ACME_Server }}
  191. CA_ECDSA: ${{ matrix.CA_ECDSA }}
  192. CA: ${{ matrix.CA }}
  193. CA_EMAIL: ${{ matrix.CA_EMAIL }}
  194. steps:
  195. - uses: actions/checkout@v2
  196. - uses: vmactions/cf-tunnel@v0.0.2
  197. id: tunnel
  198. with:
  199. protocol: http
  200. port: 8080
  201. - name: Set envs
  202. run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
  203. - name: Clone acmetest
  204. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  205. - uses: vmactions/solaris-vm@v0.0.3
  206. with:
  207. envs: 'TEST_LOCAL TestingDomain ACME_DIRECTORY CA_ECDSA CA CA_EMAIL'
  208. nat: |
  209. "8080": "80"
  210. prepare: pkgutil -y -i socat curl
  211. run: |
  212. cd ../acmetest \
  213. && ./letest.sh