18 runs-on: ubuntu-latest
20 hasToken: ${{ steps.step_one.outputs.hasToken }}
22 NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
27 if [ "$NGROK_TOKEN" ] ; then
28 echo "::set-output name=hasToken::true"
30 echo "::set-output name=hasToken::false"
32 - name: Check the value
33 run: echo ${{ steps.step_one.outputs.hasToken }}
36 runs-on: ubuntu-latest
38 if: "contains(needs.CheckToken.outputs.hasToken, 'true')"
40 NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
43 - uses: actions/checkout@v2
45 run: sudo apt-get install -y socat
46 - name: Clone acmetest
47 run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
49 run: cd ../acmetest && sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ./letest.sh
55 NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
58 - uses: actions/checkout@v2
60 run: brew update && brew install socat;
61 - name: Clone acmetest
62 run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
64 run: cd ../acmetest && sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ./letest.sh
67 runs-on: windows-latest
70 NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
72 #The 80 port is used by Windows server, we have to use a custom port, ngrok will also use this port.
75 - uses: actions/checkout@v2
76 - name: Install cygwin base packages with chocolatey
78 choco config get cacheLocation
79 choco install --no-progress cygwin
81 - name: Install cygwin additional packages
83 C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P socat,curl,cron,unzip,git
87 echo '::set-env name=PATH::C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin'
88 - name: Clone acmetest
90 run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/ && sed -i 's/\r//g' acmetest/acme.sh/acme.sh
93 run: cd ../acmetest && bash.exe -c ./letest.sh