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.

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