|
@ -1,6 +1,8 @@ |
|
|
name: DNS |
|
|
name: DNS |
|
|
on: |
|
|
on: |
|
|
push: |
|
|
push: |
|
|
|
|
|
branches: |
|
|
|
|
|
- 'dev' |
|
|
paths: |
|
|
paths: |
|
|
- 'dnsapi/*.sh' |
|
|
- 'dnsapi/*.sh' |
|
|
- '.github/workflows/DNS.yml' |
|
|
- '.github/workflows/DNS.yml' |
|
@ -36,10 +38,10 @@ jobs: |
|
|
steps: |
|
|
steps: |
|
|
- name: "Read this: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Test" |
|
|
- name: "Read this: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Test" |
|
|
run: | |
|
|
run: | |
|
|
echo "Read this: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Test" |
|
|
|
|
|
if [ "${{github.actor}}" != "Neilpang" ]; then |
|
|
|
|
|
false |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
echo "Plese see this page to fix the error: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Test" |
|
|
|
|
|
- name: Fail |
|
|
|
|
|
if: "github.actor != 'Neilpang'" |
|
|
|
|
|
run: false |
|
|
|
|
|
|
|
|
Docker: |
|
|
Docker: |
|
|
runs-on: ubuntu-latest |
|
|
runs-on: ubuntu-latest |
|
@ -149,64 +151,25 @@ jobs: |
|
|
- name: Clone acmetest |
|
|
- name: Clone acmetest |
|
|
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/ |
|
|
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/ |
|
|
- name: Run acmetest |
|
|
- name: Run acmetest |
|
|
shell: bash |
|
|
|
|
|
|
|
|
shell: cmd |
|
|
run: | |
|
|
run: | |
|
|
if [ "${{ secrets.TokenName1}}" ] ; then |
|
|
if [ "${{ secrets.TokenName1}}" ] ; then |
|
|
export ${{ secrets.TokenName1}}=${{ secrets.TokenValue1}} |
|
|
|
|
|
|
|
|
set ${{ secrets.TokenName1}}=${{ secrets.TokenValue1}} |
|
|
fi |
|
|
fi |
|
|
if [ "${{ secrets.TokenName2}}" ] ; then |
|
|
if [ "${{ secrets.TokenName2}}" ] ; then |
|
|
export ${{ secrets.TokenName2}}=${{ secrets.TokenValue2}} |
|
|
|
|
|
|
|
|
set ${{ secrets.TokenName2}}=${{ secrets.TokenValue2}} |
|
|
fi |
|
|
fi |
|
|
if [ "${{ secrets.TokenName3}}" ] ; then |
|
|
if [ "${{ secrets.TokenName3}}" ] ; then |
|
|
export ${{ secrets.TokenName3}}=${{ secrets.TokenValue3}} |
|
|
|
|
|
|
|
|
set ${{ secrets.TokenName3}}=${{ secrets.TokenValue3}} |
|
|
fi |
|
|
fi |
|
|
if [ "${{ secrets.TokenName4}}" ] ; then |
|
|
if [ "${{ secrets.TokenName4}}" ] ; then |
|
|
export ${{ secrets.TokenName4}}=${{ secrets.TokenValue4}} |
|
|
|
|
|
|
|
|
set ${{ secrets.TokenName4}}=${{ secrets.TokenValue4}} |
|
|
fi |
|
|
fi |
|
|
if [ "${{ secrets.TokenName5}}" ] ; then |
|
|
if [ "${{ secrets.TokenName5}}" ] ; then |
|
|
export ${{ secrets.TokenName5}}=${{ secrets.TokenValue5}} |
|
|
|
|
|
|
|
|
set ${{ secrets.TokenName5}}=${{ secrets.TokenValue5}} |
|
|
fi |
|
|
fi |
|
|
cd ../acmetest |
|
|
cd ../acmetest |
|
|
./letest.sh |
|
|
|
|
|
|
|
|
|
|
|
FreeBSD: |
|
|
|
|
|
runs-on: macos-latest |
|
|
|
|
|
needs: Windows |
|
|
|
|
|
env: |
|
|
|
|
|
TEST_DNS : ${{ secrets.TEST_DNS }} |
|
|
|
|
|
TestingDomain: ${{ secrets.TestingDomain }} |
|
|
|
|
|
TEST_DNS_NO_WILDCARD: ${{ secrets.TEST_DNS_NO_WILDCARD }} |
|
|
|
|
|
TEST_DNS_SLEEP: ${{ secrets.TEST_DNS_SLEEP }} |
|
|
|
|
|
CASE: le_test_dnsapi |
|
|
|
|
|
TEST_LOCAL: 1 |
|
|
|
|
|
DEBUG: 1 |
|
|
|
|
|
steps: |
|
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
|
|
- name: Clone acmetest |
|
|
|
|
|
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/ |
|
|
|
|
|
- uses: vmactions/freebsd-vm@v0.0.7 |
|
|
|
|
|
with: |
|
|
|
|
|
envs: 'TEST_DNS TestingDomain TEST_DNS_NO_WILDCARD TEST_DNS_SLEEP CASE TEST_LOCAL DEBUG ${{ secrets.TokenName1}} ${{ secrets.TokenName2}} ${{ secrets.TokenName3}} ${{ secrets.TokenName4}} ${{ secrets.TokenName5}}' |
|
|
|
|
|
prepare: pkg install -y socat curl |
|
|
|
|
|
usesh: true |
|
|
|
|
|
run: | |
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
bash.exe -c ./letest.sh |
|
|
|
|
|
|
|
|
Solaris: |
|
|
Solaris: |
|
|
runs-on: macos-latest |
|
|
runs-on: macos-latest |
|
@ -246,4 +209,3 @@ jobs: |
|
|
cd ../acmetest |
|
|
cd ../acmetest |
|
|
./letest.sh |
|
|
./letest.sh |
|
|
|
|
|
|
|
|
|
|
|
|