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.

60 lines
1.5 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_ACME_Server: "ZeroSSL.com"
  25. CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
  26. CA: "ZeroSSL RSA Domain Secure Site CA"
  27. CA_EMAIL: "githubtest@acme.sh"
  28. runs-on: macos-latest
  29. env:
  30. TEST_LOCAL: 1
  31. TEST_ACME_Server: ${{ matrix.TEST_ACME_Server }}
  32. CA_ECDSA: ${{ matrix.CA_ECDSA }}
  33. CA: ${{ matrix.CA }}
  34. CA_EMAIL: ${{ matrix.CA_EMAIL }}
  35. steps:
  36. - uses: actions/checkout@v2
  37. - uses: vmactions/cf-tunnel@v0.0.2
  38. id: tunnel
  39. with:
  40. protocol: http
  41. port: 8080
  42. - name: Set envs
  43. run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
  44. - name: Clone acmetest
  45. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  46. - uses: vmactions/freebsd-vm@v0.1.4
  47. with:
  48. envs: 'TEST_LOCAL TestingDomain TEST_ACME_Server CA_ECDSA CA CA_EMAIL'
  49. nat: |
  50. "8080": "80"
  51. prepare: pkg install -y socat curl
  52. usesh: true
  53. run: |
  54. cd ../acmetest \
  55. && ./letest.sh