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.8 KiB

1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
1 year ago
1 year ago
  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. concurrency:
  16. group: ${{ github.workflow }}-${{ github.ref }}
  17. cancel-in-progress: true
  18. jobs:
  19. NetBSD:
  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: ubuntu-latest
  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. ACME_USE_WGET: ${{ matrix.ACME_USE_WGET }}
  42. steps:
  43. - uses: actions/checkout@v4
  44. - uses: vmactions/cf-tunnel@v0
  45. id: tunnel
  46. with:
  47. protocol: http
  48. port: 8080
  49. - name: Set envs
  50. run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
  51. - name: Clone acmetest
  52. run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  53. - uses: vmactions/netbsd-vm@v1
  54. with:
  55. envs: 'TEST_LOCAL TestingDomain TEST_ACME_Server CA_ECDSA CA CA_EMAIL TEST_PREFERRED_CHAIN ACME_USE_WGET'
  56. nat: |
  57. "8080": "80"
  58. prepare: |
  59. /usr/sbin/pkg_add curl socat
  60. usesh: true
  61. copyback: false
  62. run: |
  63. cd ../acmetest \
  64. && ./letest.sh