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.

127 lines
3.6 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
  1. name: LetsEncrypt
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. paths:
  7. - '**.sh'
  8. - '**.yml'
  9. pull_request:
  10. branches:
  11. - dev
  12. paths:
  13. - '**.sh'
  14. - '**.yml'
  15. jobs:
  16. Ubuntu:
  17. runs-on: ubuntu-latest
  18. env:
  19. TEST_LOCAL: 1
  20. steps:
  21. - uses: actions/checkout@v2
  22. - name: Install tools
  23. run: sudo apt-get install -y socat
  24. - name: Clone acmetest
  25. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  26. - name: Run acmetest
  27. run: cd ../acmetest && sudo --preserve-env ./letest.sh
  28. MacOS:
  29. runs-on: macos-latest
  30. env:
  31. TEST_LOCAL: 1
  32. steps:
  33. - uses: actions/checkout@v2
  34. - name: Install tools
  35. run: brew install socat
  36. - name: Clone acmetest
  37. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  38. - name: Run acmetest
  39. run: cd ../acmetest && sudo --preserve-env ./letest.sh
  40. Windows:
  41. runs-on: windows-latest
  42. env:
  43. TEST_LOCAL: 1
  44. #The 80 port is used by Windows server, we have to use a custom port, tunnel will also use this port.
  45. Le_HTTPPort: 8888
  46. steps:
  47. - name: Set git to use LF
  48. run: |
  49. git config --global core.autocrlf false
  50. - uses: actions/checkout@v2
  51. - name: Install cygwin base packages with chocolatey
  52. run: |
  53. choco config get cacheLocation
  54. choco install --no-progress cygwin
  55. shell: cmd
  56. - name: Install cygwin additional packages
  57. run: |
  58. C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P socat,curl,cron,unzip,git
  59. shell: cmd
  60. - name: Set ENV
  61. shell: cmd
  62. run: |
  63. echo PATH=C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin >> %GITHUB_ENV%
  64. - name: Check ENV
  65. shell: cmd
  66. run: |
  67. echo "PATH=%PATH%"
  68. - name: Clone acmetest
  69. shell: cmd
  70. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  71. - name: Run acmetest
  72. shell: cmd
  73. run: cd ../acmetest && bash.exe -c ./letest.sh
  74. FreeBSD:
  75. runs-on: macos-latest
  76. env:
  77. TEST_LOCAL: 1
  78. steps:
  79. - uses: actions/checkout@v2
  80. - uses: vmactions/cf-tunnel@v0.0.2
  81. id: tunnel
  82. with:
  83. protocol: http
  84. port: 8080
  85. - name: Set envs
  86. run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
  87. - name: Clone acmetest
  88. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  89. - uses: vmactions/freebsd-vm@v0.1.4
  90. with:
  91. envs: 'TEST_LOCAL TestingDomain'
  92. nat: |
  93. "8080": "80"
  94. prepare: pkg install -y socat curl
  95. usesh: true
  96. run: |
  97. cd ../acmetest && ./letest.sh
  98. Solaris:
  99. runs-on: macos-latest
  100. env:
  101. TEST_LOCAL: 1
  102. steps:
  103. - uses: actions/checkout@v2
  104. - uses: vmactions/cf-tunnel@v0.0.2
  105. id: tunnel
  106. with:
  107. protocol: http
  108. port: 8080
  109. - name: Set envs
  110. run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
  111. - name: Clone acmetest
  112. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  113. - uses: vmactions/solaris-vm@v0.0.3
  114. with:
  115. envs: 'TEST_LOCAL TestingDomain'
  116. nat: |
  117. "8080": "80"
  118. prepare: pkgutil -y -i socat curl
  119. run: |
  120. cd ../acmetest && ./letest.sh