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.

32 lines
1.0 KiB

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. needs: Ubuntu
  19. runs-on: macos-latest
  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