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.

56 lines
1.4 KiB

4 years ago
4 years ago
  1. name: Ubuntu
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. paths:
  7. - '*.sh'
  8. - '**.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: ""
  21. CA_ECDSA: ""
  22. CA: ""
  23. CA_EMAIL: ""
  24. - TEST_ACME_Server: "https://acme.zerossl.com/v2/DV90"
  25. CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
  26. CA: "ZeroSSL RSA Domain Secure Site CA"
  27. CA_EMAIL: "githubtest@acme.sh"
  28. - TEST_ACME_Server: "https://api.test4.buypass.no/acme/directory"
  29. CA_ECDSA: "Buypass Class 2 Test4 CA 5"
  30. CA: "Buypass Class 2 Test4 CA 5"
  31. CA_EMAIL: "githubtest@acme.sh"
  32. runs-on: ubuntu-latest
  33. env:
  34. TEST_LOCAL: 1
  35. ACME_DIRECTORY: ${{ matrix.TEST_ACME_Server }}
  36. CA_ECDSA: ${{ matrix.CA_ECDSA }}
  37. CA: ${{ matrix.CA }}
  38. CA_EMAIL: ${{ matrix.CA_EMAIL }}
  39. steps:
  40. - uses: actions/checkout@v2
  41. - name: Install tools
  42. run: sudo apt-get install -y socat
  43. - name: Clone acmetest
  44. run: |
  45. cd .. \
  46. && git clone https://github.com/acmesh-official/acmetest.git \
  47. && cp -r acme.sh acmetest/
  48. - name: Run acmetest
  49. run: |
  50. cd ../acmetest \
  51. && sudo --preserve-env ./letest.sh