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.

515 lines
20 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
12 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. name: DNS
  2. on:
  3. workflow_dispatch:
  4. push:
  5. paths:
  6. - 'dnsapi/*.sh'
  7. - '.github/workflows/DNS.yml'
  8. pull_request:
  9. branches:
  10. - 'dev'
  11. paths:
  12. - 'dnsapi/*.sh'
  13. - '.github/workflows/DNS.yml'
  14. concurrency:
  15. group: ${{ github.workflow }}-${{ github.ref }}
  16. cancel-in-progress: true
  17. jobs:
  18. CheckToken:
  19. runs-on: ubuntu-latest
  20. outputs:
  21. hasToken: ${{ steps.step_one.outputs.hasToken }}
  22. steps:
  23. - name: Set the value
  24. id: step_one
  25. run: |
  26. if [ "${{secrets.TokenName1}}" ] ; then
  27. echo "::set-output name=hasToken::true"
  28. else
  29. echo "::set-output name=hasToken::false"
  30. fi
  31. - name: Check the value
  32. run: echo ${{ steps.step_one.outputs.hasToken }}
  33. Fail:
  34. runs-on: ubuntu-latest
  35. needs: CheckToken
  36. if: "contains(needs.CheckToken.outputs.hasToken, 'false')"
  37. steps:
  38. - name: "Read this: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Test"
  39. run: |
  40. echo "Read this: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Test"
  41. if [ "${{github.repository_owner}}" != "acmesh-official" ]; then
  42. false
  43. fi
  44. Docker:
  45. runs-on: ubuntu-latest
  46. needs: CheckToken
  47. if: "contains(needs.CheckToken.outputs.hasToken, 'true')"
  48. env:
  49. TEST_DNS : ${{ secrets.TEST_DNS }}
  50. TestingDomain: ${{ secrets.TestingDomain }}
  51. TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
  52. TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
  53. TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
  54. CASE: le_test_dnsapi
  55. TEST_LOCAL: 1
  56. DEBUG: ${{ secrets.DEBUG }}
  57. http_proxy: ${{ secrets.http_proxy }}
  58. https_proxy: ${{ secrets.https_proxy }}
  59. TokenName1: ${{ secrets.TokenName1}}
  60. TokenName2: ${{ secrets.TokenName2}}
  61. TokenName3: ${{ secrets.TokenName3}}
  62. TokenName4: ${{ secrets.TokenName4}}
  63. TokenName5: ${{ secrets.TokenName5}}
  64. steps:
  65. - uses: actions/checkout@v4
  66. - name: Clone acmetest
  67. run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  68. - name: Set env file
  69. run: |
  70. cd ../acmetest
  71. if [ "${{ secrets.TokenName1}}" ] ; then
  72. echo "${{ secrets.TokenName1}}=${{ secrets.TokenValue1}}" >> docker.env
  73. fi
  74. if [ "${{ secrets.TokenName2}}" ] ; then
  75. echo "${{ secrets.TokenName2}}=${{ secrets.TokenValue2}}" >> docker.env
  76. fi
  77. if [ "${{ secrets.TokenName3}}" ] ; then
  78. echo "${{ secrets.TokenName3}}=${{ secrets.TokenValue3}}" >> docker.env
  79. fi
  80. if [ "${{ secrets.TokenName4}}" ] ; then
  81. echo "${{ secrets.TokenName4}}=${{ secrets.TokenValue4}}" >> docker.env
  82. fi
  83. if [ "${{ secrets.TokenName5}}" ] ; then
  84. echo "${{ secrets.TokenName5}}=${{ secrets.TokenValue5}}" >> docker.env
  85. fi
  86. - name: Run acmetest
  87. run: cd ../acmetest && ./rundocker.sh testall
  88. MacOS:
  89. runs-on: macos-latest
  90. needs: Docker
  91. env:
  92. TEST_DNS : ${{ secrets.TEST_DNS }}
  93. TestingDomain: ${{ secrets.TestingDomain }}
  94. TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
  95. TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
  96. TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
  97. CASE: le_test_dnsapi
  98. TEST_LOCAL: 1
  99. DEBUG: ${{ secrets.DEBUG }}
  100. http_proxy: ${{ secrets.http_proxy }}
  101. https_proxy: ${{ secrets.https_proxy }}
  102. TokenName1: ${{ secrets.TokenName1}}
  103. TokenName2: ${{ secrets.TokenName2}}
  104. TokenName3: ${{ secrets.TokenName3}}
  105. TokenName4: ${{ secrets.TokenName4}}
  106. TokenName5: ${{ secrets.TokenName5}}
  107. steps:
  108. - uses: actions/checkout@v4
  109. - name: Install tools
  110. run: brew install socat
  111. - name: Clone acmetest
  112. run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  113. - name: Run acmetest
  114. run: |
  115. if [ "${{ secrets.TokenName1}}" ] ; then
  116. export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
  117. fi
  118. if [ "${{ secrets.TokenName2}}" ] ; then
  119. export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
  120. fi
  121. if [ "${{ secrets.TokenName3}}" ] ; then
  122. export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
  123. fi
  124. if [ "${{ secrets.TokenName4}}" ] ; then
  125. export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
  126. fi
  127. if [ "${{ secrets.TokenName5}}" ] ; then
  128. export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
  129. fi
  130. cd ../acmetest
  131. ./letest.sh
  132. Windows:
  133. runs-on: windows-latest
  134. needs: MacOS
  135. env:
  136. TEST_DNS : ${{ secrets.TEST_DNS }}
  137. TestingDomain: ${{ secrets.TestingDomain }}
  138. TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
  139. TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
  140. TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
  141. CASE: le_test_dnsapi
  142. TEST_LOCAL: 1
  143. DEBUG: ${{ secrets.DEBUG }}
  144. http_proxy: ${{ secrets.http_proxy }}
  145. https_proxy: ${{ secrets.https_proxy }}
  146. TokenName1: ${{ secrets.TokenName1}}
  147. TokenName2: ${{ secrets.TokenName2}}
  148. TokenName3: ${{ secrets.TokenName3}}
  149. TokenName4: ${{ secrets.TokenName4}}
  150. TokenName5: ${{ secrets.TokenName5}}
  151. steps:
  152. - name: Set git to use LF
  153. run: |
  154. git config --global core.autocrlf false
  155. - uses: actions/checkout@v4
  156. - name: Install cygwin base packages with chocolatey
  157. run: |
  158. choco config get cacheLocation
  159. choco install --no-progress cygwin
  160. shell: cmd
  161. - name: Install cygwin additional packages
  162. run: |
  163. C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s https://mirrors.kernel.org/sourceware/cygwin/ -P socat,curl,cron,unzip,git
  164. shell: cmd
  165. - name: Set ENV
  166. shell: cmd
  167. run: |
  168. echo PATH=C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin >> %GITHUB_ENV%
  169. - name: Clone acmetest
  170. run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  171. - name: Run acmetest
  172. shell: bash
  173. run: |
  174. if [ "${{ secrets.TokenName1}}" ] ; then
  175. export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
  176. fi
  177. if [ "${{ secrets.TokenName2}}" ] ; then
  178. export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
  179. fi
  180. if [ "${{ secrets.TokenName3}}" ] ; then
  181. export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
  182. fi
  183. if [ "${{ secrets.TokenName4}}" ] ; then
  184. export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
  185. fi
  186. if [ "${{ secrets.TokenName5}}" ] ; then
  187. export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
  188. fi
  189. cd ../acmetest
  190. ./letest.sh
  191. FreeBSD:
  192. runs-on: ubuntu-latest
  193. needs: Windows
  194. env:
  195. TEST_DNS : ${{ secrets.TEST_DNS }}
  196. TestingDomain: ${{ secrets.TestingDomain }}
  197. TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
  198. TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
  199. TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
  200. CASE: le_test_dnsapi
  201. TEST_LOCAL: 1
  202. DEBUG: ${{ secrets.DEBUG }}
  203. http_proxy: ${{ secrets.http_proxy }}
  204. https_proxy: ${{ secrets.https_proxy }}
  205. TokenName1: ${{ secrets.TokenName1}}
  206. TokenName2: ${{ secrets.TokenName2}}
  207. TokenName3: ${{ secrets.TokenName3}}
  208. TokenName4: ${{ secrets.TokenName4}}
  209. TokenName5: ${{ secrets.TokenName5}}
  210. steps:
  211. - uses: actions/checkout@v4
  212. - name: Clone acmetest
  213. run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  214. - uses: vmactions/freebsd-vm@v1
  215. with:
  216. envs: 'TEST_DNS TestingDomain TEST_DNS_NO_WILDCARD TEST_DNS_NO_SUBDOMAIN TEST_DNS_SLEEP CASE TEST_LOCAL DEBUG http_proxy https_proxy TokenName1 TokenName2 TokenName3 TokenName4 TokenName5 ${{ secrets.TokenName1}} ${{ secrets.TokenName2}} ${{ secrets.TokenName3}} ${{ secrets.TokenName4}} ${{ secrets.TokenName5}}'
  217. prepare: pkg install -y socat curl
  218. usesh: true
  219. copyback: false
  220. run: |
  221. if [ "${{ secrets.TokenName1}}" ] ; then
  222. export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
  223. fi
  224. if [ "${{ secrets.TokenName2}}" ] ; then
  225. export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
  226. fi
  227. if [ "${{ secrets.TokenName3}}" ] ; then
  228. export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
  229. fi
  230. if [ "${{ secrets.TokenName4}}" ] ; then
  231. export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
  232. fi
  233. if [ "${{ secrets.TokenName5}}" ] ; then
  234. export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
  235. fi
  236. cd ../acmetest
  237. ./letest.sh
  238. OpenBSD:
  239. runs-on: ubuntu-latest
  240. needs: FreeBSD
  241. env:
  242. TEST_DNS : ${{ secrets.TEST_DNS }}
  243. TestingDomain: ${{ secrets.TestingDomain }}
  244. TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
  245. TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
  246. TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
  247. CASE: le_test_dnsapi
  248. TEST_LOCAL: 1
  249. DEBUG: ${{ secrets.DEBUG }}
  250. http_proxy: ${{ secrets.http_proxy }}
  251. https_proxy: ${{ secrets.https_proxy }}
  252. TokenName1: ${{ secrets.TokenName1}}
  253. TokenName2: ${{ secrets.TokenName2}}
  254. TokenName3: ${{ secrets.TokenName3}}
  255. TokenName4: ${{ secrets.TokenName4}}
  256. TokenName5: ${{ secrets.TokenName5}}
  257. steps:
  258. - uses: actions/checkout@v4
  259. - name: Clone acmetest
  260. run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  261. - uses: vmactions/openbsd-vm@v1
  262. with:
  263. envs: 'TEST_DNS TestingDomain TEST_DNS_NO_WILDCARD TEST_DNS_NO_SUBDOMAIN TEST_DNS_SLEEP CASE TEST_LOCAL DEBUG http_proxy https_proxy TokenName1 TokenName2 TokenName3 TokenName4 TokenName5 ${{ secrets.TokenName1}} ${{ secrets.TokenName2}} ${{ secrets.TokenName3}} ${{ secrets.TokenName4}} ${{ secrets.TokenName5}}'
  264. prepare: pkg_add socat curl
  265. usesh: true
  266. copyback: false
  267. run: |
  268. if [ "${{ secrets.TokenName1}}" ] ; then
  269. export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
  270. fi
  271. if [ "${{ secrets.TokenName2}}" ] ; then
  272. export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
  273. fi
  274. if [ "${{ secrets.TokenName3}}" ] ; then
  275. export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
  276. fi
  277. if [ "${{ secrets.TokenName4}}" ] ; then
  278. export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
  279. fi
  280. if [ "${{ secrets.TokenName5}}" ] ; then
  281. export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
  282. fi
  283. cd ../acmetest
  284. ./letest.sh
  285. NetBSD:
  286. runs-on: ubuntu-latest
  287. needs: OpenBSD
  288. env:
  289. TEST_DNS : ${{ secrets.TEST_DNS }}
  290. TestingDomain: ${{ secrets.TestingDomain }}
  291. TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
  292. TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
  293. TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
  294. CASE: le_test_dnsapi
  295. TEST_LOCAL: 1
  296. DEBUG: ${{ secrets.DEBUG }}
  297. http_proxy: ${{ secrets.http_proxy }}
  298. https_proxy: ${{ secrets.https_proxy }}
  299. TokenName1: ${{ secrets.TokenName1}}
  300. TokenName2: ${{ secrets.TokenName2}}
  301. TokenName3: ${{ secrets.TokenName3}}
  302. TokenName4: ${{ secrets.TokenName4}}
  303. TokenName5: ${{ secrets.TokenName5}}
  304. steps:
  305. - uses: actions/checkout@v4
  306. - name: Clone acmetest
  307. run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  308. - uses: vmactions/netbsd-vm@v1
  309. with:
  310. envs: 'TEST_DNS TestingDomain TEST_DNS_NO_WILDCARD TEST_DNS_NO_SUBDOMAIN TEST_DNS_SLEEP CASE TEST_LOCAL DEBUG http_proxy https_proxy TokenName1 TokenName2 TokenName3 TokenName4 TokenName5 ${{ secrets.TokenName1}} ${{ secrets.TokenName2}} ${{ secrets.TokenName3}} ${{ secrets.TokenName4}} ${{ secrets.TokenName5}}'
  311. prepare: |
  312. /usr/sbin/pkg_add curl socat
  313. usesh: true
  314. copyback: false
  315. run: |
  316. if [ "${{ secrets.TokenName1}}" ] ; then
  317. export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
  318. fi
  319. if [ "${{ secrets.TokenName2}}" ] ; then
  320. export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
  321. fi
  322. if [ "${{ secrets.TokenName3}}" ] ; then
  323. export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
  324. fi
  325. if [ "${{ secrets.TokenName4}}" ] ; then
  326. export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
  327. fi
  328. if [ "${{ secrets.TokenName5}}" ] ; then
  329. export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
  330. fi
  331. cd ../acmetest
  332. ./letest.sh
  333. DragonFlyBSD:
  334. runs-on: ubuntu-latest
  335. needs: NetBSD
  336. env:
  337. TEST_DNS : ${{ secrets.TEST_DNS }}
  338. TestingDomain: ${{ secrets.TestingDomain }}
  339. TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
  340. TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
  341. TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
  342. CASE: le_test_dnsapi
  343. TEST_LOCAL: 1
  344. DEBUG: ${{ secrets.DEBUG }}
  345. http_proxy: ${{ secrets.http_proxy }}
  346. https_proxy: ${{ secrets.https_proxy }}
  347. TokenName1: ${{ secrets.TokenName1}}
  348. TokenName2: ${{ secrets.TokenName2}}
  349. TokenName3: ${{ secrets.TokenName3}}
  350. TokenName4: ${{ secrets.TokenName4}}
  351. TokenName5: ${{ secrets.TokenName5}}
  352. steps:
  353. - uses: actions/checkout@v4
  354. - name: Clone acmetest
  355. run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  356. - uses: vmactions/dragonflybsd-vm@v1
  357. with:
  358. envs: 'TEST_DNS TestingDomain TEST_DNS_NO_WILDCARD TEST_DNS_NO_SUBDOMAIN TEST_DNS_SLEEP CASE TEST_LOCAL DEBUG http_proxy https_proxy TokenName1 TokenName2 TokenName3 TokenName4 TokenName5 ${{ secrets.TokenName1}} ${{ secrets.TokenName2}} ${{ secrets.TokenName3}} ${{ secrets.TokenName4}} ${{ secrets.TokenName5}}'
  359. prepare: |
  360. pkg install -y curl socat libnghttp2
  361. usesh: true
  362. copyback: false
  363. run: |
  364. if [ "${{ secrets.TokenName1}}" ] ; then
  365. export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
  366. fi
  367. if [ "${{ secrets.TokenName2}}" ] ; then
  368. export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
  369. fi
  370. if [ "${{ secrets.TokenName3}}" ] ; then
  371. export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
  372. fi
  373. if [ "${{ secrets.TokenName4}}" ] ; then
  374. export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
  375. fi
  376. if [ "${{ secrets.TokenName5}}" ] ; then
  377. export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
  378. fi
  379. cd ../acmetest
  380. ./letest.sh
  381. Solaris:
  382. runs-on: ubuntu-latest
  383. needs: DragonFlyBSD
  384. env:
  385. TEST_DNS : ${{ secrets.TEST_DNS }}
  386. TestingDomain: ${{ secrets.TestingDomain }}
  387. TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
  388. TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
  389. TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
  390. CASE: le_test_dnsapi
  391. TEST_LOCAL: 1
  392. DEBUG: ${{ secrets.DEBUG }}
  393. http_proxy: ${{ secrets.http_proxy }}
  394. https_proxy: ${{ secrets.https_proxy }}
  395. HTTPS_INSECURE: 1 # always set to 1 to ignore https error, since Solaris doesn't accept the expired ISRG X1 root
  396. TokenName1: ${{ secrets.TokenName1}}
  397. TokenName2: ${{ secrets.TokenName2}}
  398. TokenName3: ${{ secrets.TokenName3}}
  399. TokenName4: ${{ secrets.TokenName4}}
  400. TokenName5: ${{ secrets.TokenName5}}
  401. steps:
  402. - uses: actions/checkout@v4
  403. - name: Clone acmetest
  404. run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  405. - uses: vmactions/solaris-vm@v1
  406. with:
  407. envs: 'TEST_DNS TestingDomain TEST_DNS_NO_WILDCARD TEST_DNS_NO_SUBDOMAIN TEST_DNS_SLEEP CASE TEST_LOCAL DEBUG http_proxy https_proxy HTTPS_INSECURE TokenName1 TokenName2 TokenName3 TokenName4 TokenName5 ${{ secrets.TokenName1}} ${{ secrets.TokenName2}} ${{ secrets.TokenName3}} ${{ secrets.TokenName4}} ${{ secrets.TokenName5}}'
  408. copyback: false
  409. prepare: pkgutil -y -i socat
  410. run: |
  411. pkg set-mediator -v -I default@1.1 openssl
  412. export PATH=/usr/gnu/bin:$PATH
  413. if [ "${{ secrets.TokenName1}}" ] ; then
  414. export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
  415. fi
  416. if [ "${{ secrets.TokenName2}}" ] ; then
  417. export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
  418. fi
  419. if [ "${{ secrets.TokenName3}}" ] ; then
  420. export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
  421. fi
  422. if [ "${{ secrets.TokenName4}}" ] ; then
  423. export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
  424. fi
  425. if [ "${{ secrets.TokenName5}}" ] ; then
  426. export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
  427. fi
  428. cd ../acmetest
  429. ./letest.sh
  430. Omnios:
  431. runs-on: ubuntu-latest
  432. needs: Solaris
  433. env:
  434. TEST_DNS : ${{ secrets.TEST_DNS }}
  435. TestingDomain: ${{ secrets.TestingDomain }}
  436. TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
  437. TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
  438. TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
  439. CASE: le_test_dnsapi
  440. TEST_LOCAL: 1
  441. DEBUG: ${{ secrets.DEBUG }}
  442. http_proxy: ${{ secrets.http_proxy }}
  443. https_proxy: ${{ secrets.https_proxy }}
  444. HTTPS_INSECURE: 1 # always set to 1 to ignore https error, since Omnios doesn't accept the expired ISRG X1 root
  445. TokenName1: ${{ secrets.TokenName1}}
  446. TokenName2: ${{ secrets.TokenName2}}
  447. TokenName3: ${{ secrets.TokenName3}}
  448. TokenName4: ${{ secrets.TokenName4}}
  449. TokenName5: ${{ secrets.TokenName5}}
  450. steps:
  451. - uses: actions/checkout@v4
  452. - name: Clone acmetest
  453. run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  454. - uses: vmactions/omnios-vm@v1
  455. with:
  456. envs: 'TEST_DNS TestingDomain TEST_DNS_NO_WILDCARD TEST_DNS_NO_SUBDOMAIN TEST_DNS_SLEEP CASE TEST_LOCAL DEBUG http_proxy https_proxy HTTPS_INSECURE TokenName1 TokenName2 TokenName3 TokenName4 TokenName5 ${{ secrets.TokenName1}} ${{ secrets.TokenName2}} ${{ secrets.TokenName3}} ${{ secrets.TokenName4}} ${{ secrets.TokenName5}}'
  457. copyback: false
  458. prepare: pkg install socat
  459. run: |
  460. if [ "${{ secrets.TokenName1}}" ] ; then
  461. export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
  462. fi
  463. if [ "${{ secrets.TokenName2}}" ] ; then
  464. export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
  465. fi
  466. if [ "${{ secrets.TokenName3}}" ] ; then
  467. export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
  468. fi
  469. if [ "${{ secrets.TokenName4}}" ] ; then
  470. export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
  471. fi
  472. if [ "${{ secrets.TokenName5}}" ] ; then
  473. export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
  474. fi
  475. cd ../acmetest
  476. ./letest.sh