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

2 years ago
2 years ago
2 years ago
2 years 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: 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@v3
  43. - uses: vmactions/cf-tunnel@v0
  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 --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  52. - uses: vmactions/netbsd-vm@v0
  53. with:
  54. envs: 'TEST_LOCAL TestingDomain TEST_ACME_Server CA_ECDSA CA CA_EMAIL TEST_PREFERRED_CHAIN'
  55. nat: |
  56. "8080": "80"
  57. prepare: |
  58. pkg_add curl socat
  59. usesh: true
  60. copyback: false
  61. run: |
  62. cd ../acmetest \
  63. && ./letest.sh