2020-08-27 14:17:10 +00:00
|
|
|
name: LetsEncrypt
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Ubuntu:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
|
2020-08-28 01:32:38 +00:00
|
|
|
TEST_LOCAL: 1
|
2020-08-27 14:17:10 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install tools
|
|
|
|
run: sudo apt-get install -y socat
|
|
|
|
- name: Clone acmetest
|
|
|
|
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
|
|
|
|
- name: Run acmetest
|
2020-08-28 01:32:38 +00:00
|
|
|
run: cd ../acmetest && sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ./letest.sh
|
2020-08-27 14:17:10 +00:00
|
|
|
|
|
|
|
MacOS:
|
|
|
|
runs-on: macos-latest
|
2020-08-28 15:18:05 +00:00
|
|
|
needs: Ubuntu
|
2020-08-27 14:17:10 +00:00
|
|
|
env:
|
|
|
|
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
|
2020-08-28 01:32:38 +00:00
|
|
|
TEST_LOCAL: 1
|
2020-08-27 14:17:10 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install tools
|
|
|
|
run: brew update && brew install socat;
|
|
|
|
- name: Clone acmetest
|
|
|
|
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
|
|
|
|
- name: Run acmetest
|
2020-08-28 01:32:38 +00:00
|
|
|
run: cd ../acmetest && sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ./letest.sh
|
2020-08-28 15:18:05 +00:00
|
|
|
|
|
|
|
Windows:
|
|
|
|
runs-on: windows-latest
|
|
|
|
needs: MacOS
|
|
|
|
env:
|
|
|
|
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
|
|
|
|
TEST_LOCAL: 1
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install cygwin base packages with chocolatey
|
|
|
|
run: |
|
|
|
|
choco config get cacheLocation
|
2020-08-28 15:31:18 +00:00
|
|
|
choco install --no-progress cygwin
|
2020-08-28 15:18:05 +00:00
|
|
|
shell: cmd
|
|
|
|
- name: Install cygwin additional packages
|
|
|
|
run: |
|
2020-08-28 15:31:18 +00:00
|
|
|
C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P socat,curl,cron,unzip,git
|
2020-08-28 15:18:05 +00:00
|
|
|
shell: cmd
|
|
|
|
- name: Set ENV
|
|
|
|
run: |
|
|
|
|
echo '::set-env name=PATH::C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin'
|
|
|
|
- name: Clone acmetest
|
|
|
|
shell: cmd
|
|
|
|
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
|
|
|
|
- name: Run acmetest
|
|
|
|
shell: cmd
|
|
|
|
run: cd ../acmetest && bash.exe -c ./letest.sh
|
|
|
|
|
|
|
|
|