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.

76 lines
2.1 KiB

4 years ago
4 years ago
2 years ago
2 years ago
2 years ago
4 years ago
8 months ago
8 months ago
1 year ago
1 year ago
2 years ago
1 year 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. concurrency:
  16. group: ${{ github.workflow }}-${{ github.ref }}
  17. cancel-in-progress: true
  18. jobs:
  19. FreeBSD:
  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)
  28. - TEST_ACME_Server: "LetsEncrypt.org_test"
  29. CA_ECDSA: ""
  30. CA: ""
  31. CA_EMAIL: ""
  32. TEST_PREFERRED_CHAIN: (STAGING)
  33. ACME_USE_WGET: 1
  34. #- TEST_ACME_Server: "ZeroSSL.com"
  35. # CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
  36. # CA: "ZeroSSL RSA Domain Secure Site CA"
  37. # CA_EMAIL: "githubtest@acme.sh"
  38. # TEST_PREFERRED_CHAIN: ""
  39. runs-on: ubuntu-latest
  40. env:
  41. TEST_LOCAL: 1
  42. TEST_ACME_Server: ${{ matrix.TEST_ACME_Server }}
  43. CA_ECDSA: ${{ matrix.CA_ECDSA }}
  44. CA: ${{ matrix.CA }}
  45. CA_EMAIL: ${{ matrix.CA_EMAIL }}
  46. TEST_PREFERRED_CHAIN: ${{ matrix.TEST_PREFERRED_CHAIN }}
  47. ACME_USE_WGET: ${{ matrix.ACME_USE_WGET }}
  48. steps:
  49. - uses: actions/checkout@v4
  50. - uses: vmactions/cf-tunnel@v0
  51. id: tunnel
  52. with:
  53. protocol: http
  54. port: 8080
  55. - name: Set envs
  56. run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
  57. - name: Clone acmetest
  58. run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  59. - uses: vmactions/freebsd-vm@v1
  60. with:
  61. envs: 'TEST_LOCAL TestingDomain TEST_ACME_Server CA_ECDSA CA CA_EMAIL TEST_PREFERRED_CHAIN ACME_USE_WGET'
  62. nat: |
  63. "8080": "80"
  64. prepare: pkg install -y socat curl wget
  65. usesh: true
  66. copyback: false
  67. run: |
  68. cd ../acmetest \
  69. && ./letest.sh