feat: support setting function modules for xrpc #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Linux | |
on: | |
push: | |
branches: | |
- master | |
- release/2.3 | |
pull_request: | |
branches: | |
- master | |
- release/2.3 | |
jobs: | |
build: | |
runs-on: "ubuntu-latest" | |
env: | |
OPENRESTY_PREFIX: "/usr/local/openresty" | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Linux Get dependencies | |
run: sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl luarocks | |
- name: Linux Before install | |
run: | | |
sudo cpanm --notest Test::Nginx > build.log 2>&1 || (cat build.log && exit 1) | |
sudo luarocks install luacheck | |
sudo luarocks install api7-lua-resty-http 0.2.2-0 | |
- name: Linux Install | |
run: | | |
wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add - | |
sudo apt-get -y install software-properties-common | |
sudo add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main" | |
sudo apt-get update | |
sudo apt-get install openresty | |
- name: Install Dependency | |
run: | | |
curl https://raw.githubusercontent.com/apache/apisix/master/utils/linux-install-luarocks.sh -sL | sh - | |
sudo make deps | |
- name: Linux Script | |
run: | | |
export PATH=$OPENRESTY_PREFIX/nginx/sbin:$PATH | |
make test |