You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
acme.sh/.github/workflows/LetsEncrypt.yml

128 lines
3.6 KiB
YAML

5 years ago
name: LetsEncrypt
on:
push:
branches:
- '*'
5 years ago
paths:
- '**.sh'
5 years ago
- '**.yml'
pull_request:
branches:
- dev
5 years ago
paths:
- '**.sh'
- '**.yml'
5 years ago
5 years ago
jobs:
Ubuntu:
runs-on: ubuntu-latest
env:
TEST_LOCAL: 1
5 years ago
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
5 years ago
run: cd ../acmetest && sudo --preserve-env ./letest.sh
5 years ago
MacOS:
runs-on: macos-latest
env:
TEST_LOCAL: 1
5 years ago
steps:
- uses: actions/checkout@v2
- name: Install tools
run: brew install socat
5 years ago
- name: Clone acmetest
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
- name: Run acmetest
5 years ago
run: cd ../acmetest && sudo --preserve-env ./letest.sh
5 years ago
Windows:
runs-on: windows-latest
env:
TEST_LOCAL: 1
#The 80 port is used by Windows server, we have to use a custom port, tunnel will also use this port.
Le_HTTPPort: 8888
5 years ago
steps:
5 years ago
- name: Set git to use LF
5 years ago
run: |
5 years ago
git config --global core.autocrlf false
5 years ago
- uses: actions/checkout@v2
- name: Install cygwin base packages with chocolatey
run: |
choco config get cacheLocation
5 years ago
choco install --no-progress cygwin
5 years ago
shell: cmd
- name: Install cygwin additional packages
run: |
5 years ago
C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P socat,curl,cron,unzip,git
5 years ago
shell: cmd
- name: Set ENV
4 years ago
shell: cmd
5 years ago
run: |
4 years ago
echo PATH=C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin >> %GITHUB_ENV%
4 years ago
- name: Check ENV
4 years ago
shell: cmd
4 years ago
run: |
4 years ago
echo "PATH=%PATH%"
5 years ago
- name: Clone acmetest
shell: cmd
5 years ago
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
5 years ago
- name: Run acmetest
shell: cmd
run: cd ../acmetest && bash.exe -c ./letest.sh
5 years ago
FreeBSD:
runs-on: macos-latest
env:
TEST_LOCAL: 1
steps:
- uses: actions/checkout@v2
- uses: vmactions/cf-tunnel@v0.0.1
id: tunnel
with:
protocol: http
port: 8080
- name: Set envs
run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
5 years ago
- name: Clone acmetest
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
4 years ago
- uses: vmactions/freebsd-vm@v0.1.4
5 years ago
with:
envs: 'TEST_LOCAL TestingDomain'
nat: |
"8080": "80"
prepare: pkg install -y socat curl
4 years ago
usesh: true
5 years ago
run: |
cd ../acmetest && ./letest.sh
5 years ago
Solaris:
runs-on: macos-latest
env:
TEST_LOCAL: 1
steps:
- uses: actions/checkout@v2
- uses: vmactions/cf-tunnel@v0.0.1
id: tunnel
with:
protocol: http
port: 8080
- name: Set envs
run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
- name: Clone acmetest
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
- uses: vmactions/solaris-vm@v0.0.3
with:
envs: 'TEST_LOCAL TestingDomain'
nat: |
"8080": "80"
prepare: pkgutil -y -i socat curl
run: |
cd ../acmetest && ./letest.sh