17 runs-on: ubuntu-latest
19 hasToken: ${{ steps.step_one.outputs.hasToken }}
21 NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
25 run: [ "$NGROK_TOKEN" ] && echo "::set-output name=hasToken::true" || echo "::set-output name=hasToken::false"
26 - name: Check the value
27 run: echo ${{ steps.step_one.outputs.hasToken }}
30 runs-on: ubuntu-latest
32 if: "contains(needs.CheckToken.outputs.hasToken, 'true')"
34 NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
37 - uses: actions/checkout@v2
39 run: sudo apt-get install -y socat
40 - name: Clone acmetest
41 run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
43 run: cd ../acmetest && sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ./letest.sh
49 NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
52 - uses: actions/checkout@v2
54 run: brew update && brew install socat;
55 - name: Clone acmetest
56 run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
58 run: cd ../acmetest && sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ./letest.sh
61 runs-on: windows-latest
64 NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
66 #The 80 port is used by Windows server, we have to use a custom port, ngrok will also use this port.
69 - uses: actions/checkout@v2
70 - name: Install cygwin base packages with chocolatey
72 choco config get cacheLocation
73 choco install --no-progress cygwin
75 - name: Install cygwin additional packages
77 C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P socat,curl,cron,unzip,git
81 echo '::set-env name=PATH::C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin'
82 - name: Clone acmetest
84 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
87 run: cd ../acmetest && bash.exe -c ./letest.sh