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.

69 lines
2.2 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
  1. name: LetsEncrypt
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. pull_request:
  7. branches:
  8. - dev
  9. jobs:
  10. Ubuntu:
  11. runs-on: ubuntu-latest
  12. env:
  13. NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
  14. TEST_LOCAL: 1
  15. steps:
  16. - uses: actions/checkout@v2
  17. - name: Install tools
  18. run: sudo apt-get install -y socat
  19. - name: Clone acmetest
  20. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  21. - name: Run acmetest
  22. run: cd ../acmetest && sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ./letest.sh
  23. MacOS:
  24. runs-on: macos-latest
  25. needs: Ubuntu
  26. env:
  27. NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
  28. TEST_LOCAL: 1
  29. steps:
  30. - uses: actions/checkout@v2
  31. - name: Install tools
  32. run: brew update && brew install socat;
  33. - name: Clone acmetest
  34. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  35. - name: Run acmetest
  36. run: cd ../acmetest && sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ./letest.sh
  37. Windows:
  38. runs-on: windows-latest
  39. needs: MacOS
  40. env:
  41. NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
  42. TEST_LOCAL: 1
  43. #The 80 port is used by Windows server, we have to use a custom port, ngrok will also use this port.
  44. Le_HTTPPort: 8888
  45. steps:
  46. - uses: actions/checkout@v2
  47. - name: Install cygwin base packages with chocolatey
  48. run: |
  49. choco config get cacheLocation
  50. choco install --no-progress cygwin
  51. shell: cmd
  52. - name: Install cygwin additional packages
  53. run: |
  54. C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P socat,curl,cron,unzip,git
  55. shell: cmd
  56. - name: Set ENV
  57. run: |
  58. echo '::set-env name=PATH::C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin'
  59. - name: Clone acmetest
  60. shell: cmd
  61. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/ && sed -i 's/\r//g' acmetest/acme.sh/acme.sh
  62. - name: Run acmetest
  63. shell: cmd
  64. run: cd ../acmetest && bash.exe -c ./letest.sh