Skip to content

Commit

Permalink
Resolve error
Browse files Browse the repository at this point in the history
  • Loading branch information
shyambaseapp committed Nov 11, 2024
1 parent 4a88849 commit b30d026
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@ jobs:
sudo systemctl start mysql
mysql -e "CREATE DATABASE IF NOT EXISTS wordpress_test;" -uroot -proot
- name: Enable nginx server
uses: nyurik/action-setup-nginx@v1
id: nginx
# - name: Enable nginx server
# uses: nyurik/action-setup-nginx@v1
# id: nginx

- name: Check nginx server
run: |
echo "Hello, world!" > "${{ steps.nginx.outputs.html-dir }}/index.html"
# - name: Check nginx server
# run: |
# echo "Hello, world!" > "${{ steps.nginx.outputs.html-dir }}/index.html"

curl http://localhost:${{ steps.nginx.outputs.port }}/
# Expected output: Hello, world!
# curl http://localhost:${{ steps.nginx.outputs.port }}/
# # Expected output: Hello, world!

cat "${{ steps.nginx.outputs.access-log }}"
# Expected to contain a line with GET / HTTP/1.1 200
# cat "${{ steps.nginx.outputs.access-log }}"
# # Expected to contain a line with GET / HTTP/1.1 200

- name: Setup WordPress
run: |
Expand All @@ -80,7 +80,7 @@ jobs:
# Set permissions
sudo chown -R www-data:www-data $WP_PATH
sudo chmod -R 755 $WP_PATH
sudo systemctl start nginx
sudo service apache2 start
- name: Install WP-CLI
run: |
Expand Down

0 comments on commit b30d026

Please sign in to comment.