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.

61 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
  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. steps:
  38. - uses: actions/checkout@v2
  39. - name: Install cygwin base packages with chocolatey
  40. run: |
  41. choco config get cacheLocation
  42. choco install --no-progress cygwin
  43. shell: cmd
  44. - name: Install cygwin additional packages
  45. run: |
  46. C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P socat,curl,cron,unzip,git
  47. shell: cmd
  48. - name: Set ENV
  49. run: |
  50. echo '::set-env name=PATH::C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin'
  51. - name: Clone acmetest
  52. shell: cmd
  53. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  54. - name: Run acmetest
  55. shell: cmd
  56. run: cd ../acmetest && bash.exe -c ./letest.sh