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.

68 lines
2.1 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
  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. Le_HTTPPort: 8888
  44. steps:
  45. - uses: actions/checkout@v2
  46. - name: Install cygwin base packages with chocolatey
  47. run: |
  48. choco config get cacheLocation
  49. choco install --no-progress cygwin
  50. shell: cmd
  51. - name: Install cygwin additional packages
  52. run: |
  53. C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P socat,curl,cron,unzip,git
  54. shell: cmd
  55. - name: Set ENV
  56. run: |
  57. echo '::set-env name=PATH::C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin'
  58. - name: Clone acmetest
  59. shell: cmd
  60. 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
  61. - name: Run acmetest
  62. shell: cmd
  63. run: cd ../acmetest && bash.exe -c ./letest.sh