You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.0 KiB
32 lines
1.0 KiB
name: LetsEncrypt
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
Ubuntu:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
|
|
TEST_LOCAL: 1
|
|
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
|
|
run: cd ../acmetest && sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ./letest.sh
|
|
|
|
MacOS:
|
|
needs: Ubuntu
|
|
runs-on: macos-latest
|
|
env:
|
|
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
|
|
TEST_LOCAL: 1
|
|
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
|
|
run: cd ../acmetest && sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ./letest.sh
|