]> git.proxmox.com Git - mirror_acme.sh.git/blob - .github/workflows/NetBSD.yml
fix cf-tunnel
[mirror_acme.sh.git] / .github / workflows / NetBSD.yml
1 name: NetBSD
2 on:
3 push:
4 branches:
5 - '*'
6 paths:
7 - '*.sh'
8 - '.github/workflows/NetBSD.yml'
9
10 pull_request:
11 branches:
12 - dev
13 paths:
14 - '*.sh'
15 - '.github/workflows/NetBSD.yml'
16
17 concurrency:
18 group: ${{ github.workflow }}-${{ github.ref }}
19 cancel-in-progress: true
20
21
22
23
24 jobs:
25 NetBSD:
26 strategy:
27 matrix:
28 include:
29 - TEST_ACME_Server: "LetsEncrypt.org_test"
30 CA_ECDSA: ""
31 CA: ""
32 CA_EMAIL: ""
33 TEST_PREFERRED_CHAIN: (STAGING) Pretend Pear X1
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: macos-12
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 steps:
48 - uses: actions/checkout@v3
49 - uses: vmactions/cf-tunnel@v0
50 id: tunnel
51 with:
52 protocol: http
53 port: 8080
54 - name: Set envs
55 run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
56 - name: Clone acmetest
57 run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
58 - uses: vmactions/netbsd-vm@v0
59 with:
60 envs: 'TEST_LOCAL TestingDomain TEST_ACME_Server CA_ECDSA CA CA_EMAIL TEST_PREFERRED_CHAIN'
61 nat: |
62 "8080": "80"
63 prepare: |
64 export PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r|cut -f '1 2' -d.)/All/"
65 pkg_add curl socat
66 usesh: true
67 copyback: false
68 run: |
69 cd ../acmetest \
70 && ./letest.sh
71
72