Try compile VTS using GitHub action #4
Workflow file for this run
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: Test Install Script | |
on: | |
push: | |
branches: | |
- main | |
- test | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Run install Nginx | |
run: | | |
chmod +x ./kickstart.sh | |
echo "y" | sudo ./kickstart.sh -I | |
- name: Compile VTS | |
run: | | |
sed -i 's/\(^# load_module\|^ *# vhost_traffic_\)/\1/' ./etc/nginx/nginx.conf | |
sudo cp -rT ./etc/nginx /etc/nginx | |
./kickstart.sh -V | |
- name: Text nginx config | |
run: | | |
sudo nginx -t |