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
1.9 KiB

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