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.

65 lines
1.8 KiB

  1. name: NetBSD
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. paths:
  7. - '*.sh'
  8. - '.github/workflows/NetBSD.yml'
  9. pull_request:
  10. branches:
  11. - dev
  12. paths:
  13. - '*.sh'
  14. - '.github/workflows/NetBSD.yml'
  15. jobs:
  16. NetBSD:
  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: "ZeroSSL.com"
  26. # CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
  27. # CA: "ZeroSSL RSA Domain Secure Site CA"
  28. # CA_EMAIL: "githubtest@acme.sh"
  29. # TEST_PREFERRED_CHAIN: ""
  30. runs-on: macos-12
  31. env:
  32. TEST_LOCAL: 1
  33. TEST_ACME_Server: ${{ matrix.TEST_ACME_Server }}
  34. CA_ECDSA: ${{ matrix.CA_ECDSA }}
  35. CA: ${{ matrix.CA }}
  36. CA_EMAIL: ${{ matrix.CA_EMAIL }}
  37. TEST_PREFERRED_CHAIN: ${{ matrix.TEST_PREFERRED_CHAIN }}
  38. steps:
  39. - uses: actions/checkout@v2
  40. - uses: vmactions/cf-tunnel@v0.0.3
  41. id: tunnel
  42. with:
  43. protocol: http
  44. port: 8080
  45. - name: Set envs
  46. run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
  47. - name: Clone acmetest
  48. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  49. - uses: vmactions/netbsd-vm@v0.0.2
  50. with:
  51. envs: 'TEST_LOCAL TestingDomain TEST_ACME_Server CA_ECDSA CA CA_EMAIL TEST_PREFERRED_CHAIN'
  52. nat: |
  53. "8080": "80"
  54. prepare: |
  55. export PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r|cut -f '1 2' -d.)/All/"
  56. pkg_add curl socat
  57. usesh: true
  58. run: |
  59. cd ../acmetest \
  60. && ./letest.sh