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.

71 lines
2.0 KiB

3 years ago
3 years ago
3 years ago
3 years ago
  1. name: FreeBSD
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. paths:
  7. - '*.sh'
  8. - '.github/workflows/FreeBSD.yml'
  9. pull_request:
  10. branches:
  11. - dev
  12. paths:
  13. - '*.sh'
  14. - '.github/workflows/FreeBSD.yml'
  15. jobs:
  16. FreeBSD:
  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: "LetsEncrypt.org_test"
  26. CA_ECDSA: ""
  27. CA: ""
  28. CA_EMAIL: ""
  29. TEST_PREFERRED_CHAIN: (STAGING) Pretend Pear X1
  30. ACME_USE_WGET: 1
  31. #- TEST_ACME_Server: "ZeroSSL.com"
  32. # CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
  33. # CA: "ZeroSSL RSA Domain Secure Site CA"
  34. # CA_EMAIL: "githubtest@acme.sh"
  35. # TEST_PREFERRED_CHAIN: ""
  36. runs-on: macos-12
  37. env:
  38. TEST_LOCAL: 1
  39. TEST_ACME_Server: ${{ matrix.TEST_ACME_Server }}
  40. CA_ECDSA: ${{ matrix.CA_ECDSA }}
  41. CA: ${{ matrix.CA }}
  42. CA_EMAIL: ${{ matrix.CA_EMAIL }}
  43. TEST_PREFERRED_CHAIN: ${{ matrix.TEST_PREFERRED_CHAIN }}
  44. ACME_USE_WGET: ${{ matrix.ACME_USE_WGET }}
  45. steps:
  46. - uses: actions/checkout@v2
  47. - uses: vmactions/cf-tunnel@v0.0.3
  48. id: tunnel
  49. with:
  50. protocol: http
  51. port: 8080
  52. - name: Set envs
  53. run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
  54. - name: Clone acmetest
  55. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  56. - uses: vmactions/freebsd-vm@v0
  57. with:
  58. envs: 'TEST_LOCAL TestingDomain TEST_ACME_Server CA_ECDSA CA CA_EMAIL TEST_PREFERRED_CHAIN ACME_USE_WGET'
  59. nat: |
  60. "8080": "80"
  61. prepare: pkg install -y socat curl wget
  62. usesh: true
  63. copyback: false
  64. run: |
  65. cd ../acmetest \
  66. && ./letest.sh