2022-08-14 10:25:28 +02:00
|
|
|
name: DNS
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'dnsapi/*.sh'
|
|
|
|
- '.github/workflows/DNS.yml'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'dev'
|
|
|
|
paths:
|
|
|
|
- 'dnsapi/*.sh'
|
|
|
|
- '.github/workflows/DNS.yml'
|
|
|
|
|
2022-08-18 14:30:11 +02:00
|
|
|
concurrency:
|
2022-08-23 16:15:50 +02:00
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
2022-08-18 14:30:11 +02:00
|
|
|
cancel-in-progress: true
|
2022-08-14 10:25:28 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
CheckToken:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
|
|
hasToken: ${{ steps.step_one.outputs.hasToken }}
|
|
|
|
steps:
|
|
|
|
- name: Set the value
|
|
|
|
id: step_one
|
|
|
|
run: |
|
|
|
|
if [ "${{secrets.TokenName1}}" ] ; then
|
|
|
|
echo "::set-output name=hasToken::true"
|
|
|
|
else
|
|
|
|
echo "::set-output name=hasToken::false"
|
|
|
|
fi
|
|
|
|
- name: Check the value
|
|
|
|
run: echo ${{ steps.step_one.outputs.hasToken }}
|
|
|
|
|
|
|
|
Fail:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: CheckToken
|
|
|
|
if: "contains(needs.CheckToken.outputs.hasToken, 'false')"
|
|
|
|
steps:
|
|
|
|
- name: "Read this: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Test"
|
|
|
|
run: |
|
|
|
|
echo "Read this: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Test"
|
|
|
|
if [ "${{github.repository_owner}}" != "acmesh-official" ]; then
|
|
|
|
false
|
|
|
|
fi
|
|
|
|
|
|
|
|
Docker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: CheckToken
|
|
|
|
if: "contains(needs.CheckToken.outputs.hasToken, 'true')"
|
|
|
|
env:
|
|
|
|
TEST_DNS : ${{ secrets.TEST_DNS }}
|
|
|
|
TestingDomain: ${{ secrets.TestingDomain }}
|
|
|
|
TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
|
|
|
|
TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
|
|
|
|
TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
|
|
|
|
CASE: le_test_dnsapi
|
|
|
|
TEST_LOCAL: 1
|
|
|
|
DEBUG: ${{ secrets.DEBUG }}
|
|
|
|
http_proxy: ${{ secrets.http_proxy }}
|
|
|
|
https_proxy: ${{ secrets.https_proxy }}
|
2022-09-24 17:58:44 +02:00
|
|
|
TokenName1: ${{ secrets.TokenName1}}
|
|
|
|
TokenName2: ${{ secrets.TokenName2}}
|
|
|
|
TokenName3: ${{ secrets.TokenName3}}
|
|
|
|
TokenName4: ${{ secrets.TokenName4}}
|
|
|
|
TokenName5: ${{ secrets.TokenName5}}
|
2022-08-14 10:25:28 +02:00
|
|
|
steps:
|
2023-12-02 22:50:59 +01:00
|
|
|
- uses: actions/checkout@v4
|
2022-08-14 10:25:28 +02:00
|
|
|
- name: Clone acmetest
|
2022-10-17 12:49:10 +02:00
|
|
|
run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
|
2022-08-14 10:25:28 +02:00
|
|
|
- name: Set env file
|
|
|
|
run: |
|
|
|
|
cd ../acmetest
|
|
|
|
if [ "${{ secrets.TokenName1}}" ] ; then
|
|
|
|
echo "${{ secrets.TokenName1}}=${{ secrets.TokenValue1}}" >> docker.env
|
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName2}}" ] ; then
|
|
|
|
echo "${{ secrets.TokenName2}}=${{ secrets.TokenValue2}}" >> docker.env
|
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName3}}" ] ; then
|
|
|
|
echo "${{ secrets.TokenName3}}=${{ secrets.TokenValue3}}" >> docker.env
|
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName4}}" ] ; then
|
|
|
|
echo "${{ secrets.TokenName4}}=${{ secrets.TokenValue4}}" >> docker.env
|
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName5}}" ] ; then
|
|
|
|
echo "${{ secrets.TokenName5}}=${{ secrets.TokenValue5}}" >> docker.env
|
|
|
|
fi
|
2022-09-03 15:11:16 +02:00
|
|
|
|
2022-08-14 10:25:28 +02:00
|
|
|
- name: Run acmetest
|
|
|
|
run: cd ../acmetest && ./rundocker.sh testall
|
|
|
|
|
2022-08-14 11:44:16 +02:00
|
|
|
|
2022-08-14 10:25:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
MacOS:
|
|
|
|
runs-on: macos-latest
|
|
|
|
needs: Docker
|
|
|
|
env:
|
|
|
|
TEST_DNS : ${{ secrets.TEST_DNS }}
|
|
|
|
TestingDomain: ${{ secrets.TestingDomain }}
|
|
|
|
TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
|
|
|
|
TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
|
|
|
|
TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
|
|
|
|
CASE: le_test_dnsapi
|
|
|
|
TEST_LOCAL: 1
|
|
|
|
DEBUG: ${{ secrets.DEBUG }}
|
|
|
|
http_proxy: ${{ secrets.http_proxy }}
|
|
|
|
https_proxy: ${{ secrets.https_proxy }}
|
2022-09-24 17:58:44 +02:00
|
|
|
TokenName1: ${{ secrets.TokenName1}}
|
|
|
|
TokenName2: ${{ secrets.TokenName2}}
|
|
|
|
TokenName3: ${{ secrets.TokenName3}}
|
|
|
|
TokenName4: ${{ secrets.TokenName4}}
|
|
|
|
TokenName5: ${{ secrets.TokenName5}}
|
2022-08-14 10:25:28 +02:00
|
|
|
steps:
|
2023-12-02 22:50:59 +01:00
|
|
|
- uses: actions/checkout@v4
|
2022-08-14 10:25:28 +02:00
|
|
|
- name: Install tools
|
|
|
|
run: brew install socat
|
|
|
|
- name: Clone acmetest
|
2022-10-17 12:49:10 +02:00
|
|
|
run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
|
2022-08-14 10:25:28 +02:00
|
|
|
- name: Run acmetest
|
|
|
|
run: |
|
|
|
|
if [ "${{ secrets.TokenName1}}" ] ; then
|
2022-11-29 09:51:49 +01:00
|
|
|
export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName2}}" ] ; then
|
2022-11-29 09:51:49 +01:00
|
|
|
export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName3}}" ] ; then
|
2022-11-29 09:51:49 +01:00
|
|
|
export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName4}}" ] ; then
|
2022-11-29 09:51:49 +01:00
|
|
|
export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName5}}" ] ; then
|
2022-11-29 09:51:49 +01:00
|
|
|
export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
cd ../acmetest
|
|
|
|
./letest.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Windows:
|
|
|
|
runs-on: windows-latest
|
|
|
|
needs: MacOS
|
|
|
|
env:
|
|
|
|
TEST_DNS : ${{ secrets.TEST_DNS }}
|
|
|
|
TestingDomain: ${{ secrets.TestingDomain }}
|
|
|
|
TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
|
|
|
|
TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
|
|
|
|
TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
|
|
|
|
CASE: le_test_dnsapi
|
|
|
|
TEST_LOCAL: 1
|
|
|
|
DEBUG: ${{ secrets.DEBUG }}
|
|
|
|
http_proxy: ${{ secrets.http_proxy }}
|
|
|
|
https_proxy: ${{ secrets.https_proxy }}
|
2022-09-24 17:58:44 +02:00
|
|
|
TokenName1: ${{ secrets.TokenName1}}
|
|
|
|
TokenName2: ${{ secrets.TokenName2}}
|
|
|
|
TokenName3: ${{ secrets.TokenName3}}
|
|
|
|
TokenName4: ${{ secrets.TokenName4}}
|
|
|
|
TokenName5: ${{ secrets.TokenName5}}
|
2022-08-14 10:25:28 +02:00
|
|
|
steps:
|
|
|
|
- name: Set git to use LF
|
|
|
|
run: |
|
|
|
|
git config --global core.autocrlf false
|
2023-12-02 22:50:59 +01:00
|
|
|
- uses: actions/checkout@v4
|
2022-08-14 10:25:28 +02:00
|
|
|
- name: Install cygwin base packages with chocolatey
|
|
|
|
run: |
|
|
|
|
choco config get cacheLocation
|
|
|
|
choco install --no-progress cygwin
|
|
|
|
shell: cmd
|
|
|
|
- name: Install cygwin additional packages
|
|
|
|
run: |
|
2022-10-17 10:45:48 +02:00
|
|
|
C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s https://mirrors.kernel.org/sourceware/cygwin/ -P socat,curl,cron,unzip,git
|
2022-08-14 10:25:28 +02:00
|
|
|
shell: cmd
|
|
|
|
- name: Set ENV
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
echo PATH=C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin >> %GITHUB_ENV%
|
|
|
|
- name: Clone acmetest
|
2022-10-17 12:49:10 +02:00
|
|
|
run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
|
2022-08-14 10:25:28 +02:00
|
|
|
- name: Run acmetest
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
if [ "${{ secrets.TokenName1}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName2}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName3}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName4}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName5}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
cd ../acmetest
|
|
|
|
./letest.sh
|
|
|
|
|
2022-08-14 11:44:16 +02:00
|
|
|
|
2022-08-14 10:25:28 +02:00
|
|
|
|
|
|
|
FreeBSD:
|
2023-12-02 22:50:59 +01:00
|
|
|
runs-on: ubuntu-latest
|
2022-08-14 10:25:28 +02:00
|
|
|
needs: Windows
|
|
|
|
env:
|
|
|
|
TEST_DNS : ${{ secrets.TEST_DNS }}
|
|
|
|
TestingDomain: ${{ secrets.TestingDomain }}
|
|
|
|
TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
|
|
|
|
TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
|
|
|
|
TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
|
|
|
|
CASE: le_test_dnsapi
|
|
|
|
TEST_LOCAL: 1
|
|
|
|
DEBUG: ${{ secrets.DEBUG }}
|
|
|
|
http_proxy: ${{ secrets.http_proxy }}
|
|
|
|
https_proxy: ${{ secrets.https_proxy }}
|
2022-09-24 17:58:44 +02:00
|
|
|
TokenName1: ${{ secrets.TokenName1}}
|
|
|
|
TokenName2: ${{ secrets.TokenName2}}
|
|
|
|
TokenName3: ${{ secrets.TokenName3}}
|
|
|
|
TokenName4: ${{ secrets.TokenName4}}
|
|
|
|
TokenName5: ${{ secrets.TokenName5}}
|
2022-08-14 10:25:28 +02:00
|
|
|
steps:
|
2023-12-02 22:50:59 +01:00
|
|
|
- uses: actions/checkout@v4
|
2022-08-14 10:25:28 +02:00
|
|
|
- name: Clone acmetest
|
2022-10-17 12:49:10 +02:00
|
|
|
run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
|
2023-12-02 22:50:59 +01:00
|
|
|
- uses: vmactions/freebsd-vm@v1
|
2022-08-14 10:25:28 +02:00
|
|
|
with:
|
2022-09-24 17:58:44 +02:00
|
|
|
envs: 'TEST_DNS TestingDomain TEST_DNS_NO_WILDCARD TEST_DNS_NO_SUBDOMAIN TEST_DNS_SLEEP CASE TEST_LOCAL DEBUG http_proxy https_proxy TokenName1 TokenName2 TokenName3 TokenName4 TokenName5 ${{ secrets.TokenName1}} ${{ secrets.TokenName2}} ${{ secrets.TokenName3}} ${{ secrets.TokenName4}} ${{ secrets.TokenName5}}'
|
2022-08-14 10:25:28 +02:00
|
|
|
prepare: pkg install -y socat curl
|
|
|
|
usesh: true
|
|
|
|
copyback: false
|
|
|
|
run: |
|
|
|
|
if [ "${{ secrets.TokenName1}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName2}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName3}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName4}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName5}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
cd ../acmetest
|
|
|
|
./letest.sh
|
|
|
|
|
2022-08-14 11:44:16 +02:00
|
|
|
|
2022-08-14 10:25:28 +02:00
|
|
|
|
|
|
|
|
2022-09-06 14:33:51 +02:00
|
|
|
OpenBSD:
|
2023-12-02 22:50:59 +01:00
|
|
|
runs-on: ubuntu-latest
|
2022-09-07 12:20:09 +02:00
|
|
|
needs: FreeBSD
|
2022-08-14 10:25:28 +02:00
|
|
|
env:
|
|
|
|
TEST_DNS : ${{ secrets.TEST_DNS }}
|
|
|
|
TestingDomain: ${{ secrets.TestingDomain }}
|
|
|
|
TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
|
|
|
|
TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
|
|
|
|
TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
|
|
|
|
CASE: le_test_dnsapi
|
|
|
|
TEST_LOCAL: 1
|
|
|
|
DEBUG: ${{ secrets.DEBUG }}
|
|
|
|
http_proxy: ${{ secrets.http_proxy }}
|
|
|
|
https_proxy: ${{ secrets.https_proxy }}
|
2022-09-24 17:58:44 +02:00
|
|
|
TokenName1: ${{ secrets.TokenName1}}
|
|
|
|
TokenName2: ${{ secrets.TokenName2}}
|
|
|
|
TokenName3: ${{ secrets.TokenName3}}
|
|
|
|
TokenName4: ${{ secrets.TokenName4}}
|
|
|
|
TokenName5: ${{ secrets.TokenName5}}
|
2022-08-14 10:25:28 +02:00
|
|
|
steps:
|
2023-12-02 22:50:59 +01:00
|
|
|
- uses: actions/checkout@v4
|
2022-08-14 10:25:28 +02:00
|
|
|
- name: Clone acmetest
|
2022-10-17 12:49:10 +02:00
|
|
|
run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
|
2023-12-02 22:50:59 +01:00
|
|
|
- uses: vmactions/openbsd-vm@v1
|
2022-08-14 10:25:28 +02:00
|
|
|
with:
|
2022-09-24 17:58:44 +02:00
|
|
|
envs: 'TEST_DNS TestingDomain TEST_DNS_NO_WILDCARD TEST_DNS_NO_SUBDOMAIN TEST_DNS_SLEEP CASE TEST_LOCAL DEBUG http_proxy https_proxy TokenName1 TokenName2 TokenName3 TokenName4 TokenName5 ${{ secrets.TokenName1}} ${{ secrets.TokenName2}} ${{ secrets.TokenName3}} ${{ secrets.TokenName4}} ${{ secrets.TokenName5}}'
|
2023-09-02 12:38:51 +02:00
|
|
|
prepare: pkg_add socat curl
|
2022-09-06 14:33:51 +02:00
|
|
|
usesh: true
|
2022-08-14 10:25:28 +02:00
|
|
|
copyback: false
|
|
|
|
run: |
|
|
|
|
if [ "${{ secrets.TokenName1}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName2}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName3}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName4}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName5}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
cd ../acmetest
|
|
|
|
./letest.sh
|
|
|
|
|
2022-08-14 11:44:16 +02:00
|
|
|
|
2022-08-14 10:25:28 +02:00
|
|
|
|
|
|
|
|
2022-09-06 14:33:51 +02:00
|
|
|
NetBSD:
|
2023-12-02 22:50:59 +01:00
|
|
|
runs-on: ubuntu-latest
|
2022-09-06 14:33:51 +02:00
|
|
|
needs: OpenBSD
|
2022-08-14 10:25:28 +02:00
|
|
|
env:
|
|
|
|
TEST_DNS : ${{ secrets.TEST_DNS }}
|
|
|
|
TestingDomain: ${{ secrets.TestingDomain }}
|
|
|
|
TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
|
|
|
|
TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
|
|
|
|
TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
|
|
|
|
CASE: le_test_dnsapi
|
|
|
|
TEST_LOCAL: 1
|
|
|
|
DEBUG: ${{ secrets.DEBUG }}
|
|
|
|
http_proxy: ${{ secrets.http_proxy }}
|
|
|
|
https_proxy: ${{ secrets.https_proxy }}
|
2022-09-24 17:58:44 +02:00
|
|
|
TokenName1: ${{ secrets.TokenName1}}
|
|
|
|
TokenName2: ${{ secrets.TokenName2}}
|
|
|
|
TokenName3: ${{ secrets.TokenName3}}
|
|
|
|
TokenName4: ${{ secrets.TokenName4}}
|
|
|
|
TokenName5: ${{ secrets.TokenName5}}
|
2022-08-14 10:25:28 +02:00
|
|
|
steps:
|
2023-12-02 22:50:59 +01:00
|
|
|
- uses: actions/checkout@v4
|
2022-08-14 10:25:28 +02:00
|
|
|
- name: Clone acmetest
|
2022-10-17 12:49:10 +02:00
|
|
|
run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
|
2023-12-02 22:50:59 +01:00
|
|
|
- uses: vmactions/netbsd-vm@v1
|
2022-08-14 10:25:28 +02:00
|
|
|
with:
|
2022-09-24 17:58:44 +02:00
|
|
|
envs: 'TEST_DNS TestingDomain TEST_DNS_NO_WILDCARD TEST_DNS_NO_SUBDOMAIN TEST_DNS_SLEEP CASE TEST_LOCAL DEBUG http_proxy https_proxy TokenName1 TokenName2 TokenName3 TokenName4 TokenName5 ${{ secrets.TokenName1}} ${{ secrets.TokenName2}} ${{ secrets.TokenName3}} ${{ secrets.TokenName4}} ${{ secrets.TokenName5}}'
|
2022-09-06 14:33:51 +02:00
|
|
|
prepare: |
|
2023-09-02 12:23:14 +02:00
|
|
|
pkg_add curl socat
|
2022-08-14 10:25:28 +02:00
|
|
|
usesh: true
|
|
|
|
copyback: false
|
|
|
|
run: |
|
|
|
|
if [ "${{ secrets.TokenName1}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName2}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName3}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName4}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName5}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
cd ../acmetest
|
|
|
|
./letest.sh
|
|
|
|
|
2022-08-14 11:44:16 +02:00
|
|
|
|
2022-08-14 10:25:28 +02:00
|
|
|
|
|
|
|
|
2022-09-06 14:33:51 +02:00
|
|
|
DragonFlyBSD:
|
2023-12-02 22:50:59 +01:00
|
|
|
runs-on: ubuntu-latest
|
2022-09-06 14:33:51 +02:00
|
|
|
needs: NetBSD
|
2022-08-14 10:25:28 +02:00
|
|
|
env:
|
|
|
|
TEST_DNS : ${{ secrets.TEST_DNS }}
|
|
|
|
TestingDomain: ${{ secrets.TestingDomain }}
|
|
|
|
TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
|
|
|
|
TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
|
|
|
|
TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
|
|
|
|
CASE: le_test_dnsapi
|
|
|
|
TEST_LOCAL: 1
|
|
|
|
DEBUG: ${{ secrets.DEBUG }}
|
|
|
|
http_proxy: ${{ secrets.http_proxy }}
|
|
|
|
https_proxy: ${{ secrets.https_proxy }}
|
2022-09-24 17:58:44 +02:00
|
|
|
TokenName1: ${{ secrets.TokenName1}}
|
|
|
|
TokenName2: ${{ secrets.TokenName2}}
|
|
|
|
TokenName3: ${{ secrets.TokenName3}}
|
|
|
|
TokenName4: ${{ secrets.TokenName4}}
|
|
|
|
TokenName5: ${{ secrets.TokenName5}}
|
2022-08-14 10:25:28 +02:00
|
|
|
steps:
|
2023-12-02 22:50:59 +01:00
|
|
|
- uses: actions/checkout@v4
|
2022-08-14 10:25:28 +02:00
|
|
|
- name: Clone acmetest
|
2022-10-17 12:49:10 +02:00
|
|
|
run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
|
2023-12-02 22:50:59 +01:00
|
|
|
- uses: vmactions/dragonflybsd-vm@v1
|
2022-08-14 10:25:28 +02:00
|
|
|
with:
|
2022-09-24 17:58:44 +02:00
|
|
|
envs: 'TEST_DNS TestingDomain TEST_DNS_NO_WILDCARD TEST_DNS_NO_SUBDOMAIN TEST_DNS_SLEEP CASE TEST_LOCAL DEBUG http_proxy https_proxy TokenName1 TokenName2 TokenName3 TokenName4 TokenName5 ${{ secrets.TokenName1}} ${{ secrets.TokenName2}} ${{ secrets.TokenName3}} ${{ secrets.TokenName4}} ${{ secrets.TokenName5}}'
|
2022-08-14 10:25:28 +02:00
|
|
|
prepare: |
|
2023-09-02 08:31:17 +02:00
|
|
|
pkg install -y curl socat libnghttp2
|
2022-08-14 10:25:28 +02:00
|
|
|
usesh: true
|
|
|
|
copyback: false
|
|
|
|
run: |
|
|
|
|
if [ "${{ secrets.TokenName1}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName2}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName3}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName4}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName5}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
cd ../acmetest
|
|
|
|
./letest.sh
|
|
|
|
|
2022-08-14 11:44:16 +02:00
|
|
|
|
2022-08-14 10:25:28 +02:00
|
|
|
|
|
|
|
|
2022-09-06 14:33:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Solaris:
|
2023-12-04 09:41:39 +01:00
|
|
|
runs-on: ubuntu-latest
|
2022-09-07 12:20:09 +02:00
|
|
|
needs: DragonFlyBSD
|
2022-08-14 10:25:28 +02:00
|
|
|
env:
|
|
|
|
TEST_DNS : ${{ secrets.TEST_DNS }}
|
|
|
|
TestingDomain: ${{ secrets.TestingDomain }}
|
|
|
|
TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
|
|
|
|
TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
|
|
|
|
TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
|
|
|
|
CASE: le_test_dnsapi
|
|
|
|
TEST_LOCAL: 1
|
|
|
|
DEBUG: ${{ secrets.DEBUG }}
|
|
|
|
http_proxy: ${{ secrets.http_proxy }}
|
|
|
|
https_proxy: ${{ secrets.https_proxy }}
|
2022-09-24 17:58:44 +02:00
|
|
|
HTTPS_INSECURE: 1 # always set to 1 to ignore https error, since Solaris doesn't accept the expired ISRG X1 root
|
|
|
|
TokenName1: ${{ secrets.TokenName1}}
|
|
|
|
TokenName2: ${{ secrets.TokenName2}}
|
|
|
|
TokenName3: ${{ secrets.TokenName3}}
|
|
|
|
TokenName4: ${{ secrets.TokenName4}}
|
|
|
|
TokenName5: ${{ secrets.TokenName5}}
|
2022-08-14 10:25:28 +02:00
|
|
|
steps:
|
2023-12-02 22:50:59 +01:00
|
|
|
- uses: actions/checkout@v4
|
2022-08-14 10:25:28 +02:00
|
|
|
- name: Clone acmetest
|
2022-10-17 12:49:10 +02:00
|
|
|
run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
|
2023-12-04 09:41:39 +01:00
|
|
|
- uses: vmactions/solaris-vm@v1
|
2022-08-14 10:25:28 +02:00
|
|
|
with:
|
2022-09-24 17:58:44 +02:00
|
|
|
envs: 'TEST_DNS TestingDomain TEST_DNS_NO_WILDCARD TEST_DNS_NO_SUBDOMAIN TEST_DNS_SLEEP CASE TEST_LOCAL DEBUG http_proxy https_proxy HTTPS_INSECURE TokenName1 TokenName2 TokenName3 TokenName4 TokenName5 ${{ secrets.TokenName1}} ${{ secrets.TokenName2}} ${{ secrets.TokenName3}} ${{ secrets.TokenName4}} ${{ secrets.TokenName5}}'
|
2023-12-04 23:51:06 +01:00
|
|
|
copyback: false
|
|
|
|
prepare: pkgutil -y -i socat
|
|
|
|
run: |
|
|
|
|
pkg set-mediator -v -I default@1.1 openssl
|
|
|
|
export PATH=/usr/gnu/bin:$PATH
|
|
|
|
if [ "${{ secrets.TokenName1}}" ] ; then
|
|
|
|
export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
|
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName2}}" ] ; then
|
|
|
|
export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
|
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName3}}" ] ; then
|
|
|
|
export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
|
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName4}}" ] ; then
|
|
|
|
export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
|
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName5}}" ] ; then
|
|
|
|
export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
|
|
|
|
fi
|
|
|
|
cd ../acmetest
|
|
|
|
./letest.sh
|
|
|
|
|
|
|
|
|
|
|
|
Omnios:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: DragonFlyBSD
|
|
|
|
env:
|
|
|
|
TEST_DNS : ${{ secrets.TEST_DNS }}
|
|
|
|
TestingDomain: ${{ secrets.TestingDomain }}
|
|
|
|
TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }}
|
|
|
|
TEST_DNS_NO_SUBDOMAIN: ${{ secrets.TEST_DNS_NO_SUBDOMAIN }}
|
|
|
|
TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }}
|
|
|
|
CASE: le_test_dnsapi
|
|
|
|
TEST_LOCAL: 1
|
|
|
|
DEBUG: ${{ secrets.DEBUG }}
|
|
|
|
http_proxy: ${{ secrets.http_proxy }}
|
|
|
|
https_proxy: ${{ secrets.https_proxy }}
|
|
|
|
HTTPS_INSECURE: 1 # always set to 1 to ignore https error, since Omnios doesn't accept the expired ISRG X1 root
|
|
|
|
TokenName1: ${{ secrets.TokenName1}}
|
|
|
|
TokenName2: ${{ secrets.TokenName2}}
|
|
|
|
TokenName3: ${{ secrets.TokenName3}}
|
|
|
|
TokenName4: ${{ secrets.TokenName4}}
|
|
|
|
TokenName5: ${{ secrets.TokenName5}}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Clone acmetest
|
|
|
|
run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
|
|
|
|
- uses: vmactions/omnios-vm@v1
|
|
|
|
with:
|
|
|
|
envs: 'TEST_DNS TestingDomain TEST_DNS_NO_WILDCARD TEST_DNS_NO_SUBDOMAIN TEST_DNS_SLEEP CASE TEST_LOCAL DEBUG http_proxy https_proxy HTTPS_INSECURE TokenName1 TokenName2 TokenName3 TokenName4 TokenName5 ${{ secrets.TokenName1}} ${{ secrets.TokenName2}} ${{ secrets.TokenName3}} ${{ secrets.TokenName4}} ${{ secrets.TokenName5}}'
|
2022-08-14 10:25:28 +02:00
|
|
|
copyback: false
|
2022-09-06 14:33:51 +02:00
|
|
|
prepare: pkgutil -y -i socat
|
2022-08-14 10:25:28 +02:00
|
|
|
run: |
|
2022-09-06 14:33:51 +02:00
|
|
|
pkg set-mediator -v -I default@1.1 openssl
|
|
|
|
export PATH=/usr/gnu/bin:$PATH
|
2022-08-14 10:25:28 +02:00
|
|
|
if [ "${{ secrets.TokenName1}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName1}}="${{ secrets.TokenValue1}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName2}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName2}}="${{ secrets.TokenValue2}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName3}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName3}}="${{ secrets.TokenValue3}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName4}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName4}}="${{ secrets.TokenValue4}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
if [ "${{ secrets.TokenName5}}" ] ; then
|
2022-11-29 11:15:04 +01:00
|
|
|
export ${{ secrets.TokenName5}}="${{ secrets.TokenValue5}}"
|
2022-08-14 10:25:28 +02:00
|
|
|
fi
|
|
|
|
cd ../acmetest
|
|
|
|
./letest.sh
|
|
|
|
|
|
|
|
|