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.

74 lines
2.3 KiB

4 years ago
4 years ago
4 years ago
4 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. name: Ubuntu
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. paths:
  7. - '*.sh'
  8. - '.github/workflows/Ubuntu.yml'
  9. pull_request:
  10. branches:
  11. - dev
  12. paths:
  13. - '*.sh'
  14. - '.github/workflows/Ubuntu.yml'
  15. jobs:
  16. Ubuntu:
  17. strategy:
  18. matrix:
  19. include:
  20. - TEST_ACME_Server: "LetsEncrypt.org_test"
  21. CA_ECDSA: ""
  22. CA: ""
  23. CA_EMAIL: ""
  24. TEST_PREFERRED_CHAIN: (STAGING) Pretend Pear X1
  25. - TEST_ACME_Server: "ZeroSSL.com"
  26. CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
  27. CA: "ZeroSSL RSA Domain Secure Site CA"
  28. CA_EMAIL: "githubtest@acme.sh"
  29. TEST_PREFERRED_CHAIN: ""
  30. - TEST_ACME_Server: "https://localhost:9000/acme/acme/directory"
  31. CA_ECDSA: ""
  32. CA: "Smallstep Intermediate CA"
  33. CA_EMAIL: ""
  34. TEST_PREFERRED_CHAIN: ""
  35. runs-on: ubuntu-latest
  36. env:
  37. TEST_LOCAL: 1
  38. TEST_ACME_Server: ${{ matrix.TEST_ACME_Server }}
  39. CA_ECDSA: ${{ matrix.CA_ECDSA }}
  40. CA: ${{ matrix.CA }}
  41. CA_EMAIL: ${{ matrix.CA_EMAIL }}
  42. NO_ECC_384: ${{ matrix.NO_ECC_384 }}
  43. TEST_PREFERRED_CHAIN: ${{ matrix.TEST_PREFERRED_CHAIN }}
  44. steps:
  45. - uses: actions/checkout@v2
  46. - name: Install tools
  47. run: sudo apt-get install -y socat
  48. - name: Start StepCA
  49. if: ${{ matrix.TEST_ACME_Server=='https://localhost:9000/acme/acme/directory' }}
  50. run: |
  51. docker run --rm -d \
  52. -p 9000:9000 \
  53. -e "DOCKER_STEPCA_INIT_NAME=Smallstep" \
  54. -e "DOCKER_STEPCA_INIT_DNS_NAMES=localhost,$(hostname -f)" \
  55. --name stepca \
  56. smallstep/step-ca \
  57. && sleep 5 && docker exec stepca step ca provisioner add acme --type ACME \
  58. && docker exec stepca kill -1 1 \
  59. && docker exec stepca cat /home/step/certs/root_ca.crt | sudo cat - >>/etc/ssl/certs/ca-certificates.crt
  60. - name: Clone acmetest
  61. run: |
  62. cd .. \
  63. && git clone https://github.com/acmesh-official/acmetest.git \
  64. && cp -r acme.sh acmetest/
  65. - name: Run acmetest
  66. run: |
  67. cd ../acmetest \
  68. && sudo --preserve-env ./letest.sh