From 9c0fcc3528e58e8f3b2c3e88a45e32493a47937b Mon Sep 17 00:00:00 2001 From: diego Date: Fri, 21 Feb 2025 03:00:03 +0100 Subject: [PATCH] Let's try this lol --- .github/workflows/sakisafe_http.yml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/sakisafe_http.yml diff --git a/.github/workflows/sakisafe_http.yml b/.github/workflows/sakisafe_http.yml new file mode 100644 index 0000000..125c671 --- /dev/null +++ b/.github/workflows/sakisafe_http.yml @@ -0,0 +1,36 @@ +# This was written by an AI. HA! +# I hate writing yaml. I'm glad a computer can do it for me. + +name: Test Mojolicious Application + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + services: + web: + image: perl:latest + ports: + - 3000:3000 + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Perl + run: | + cpanm Mojolicious + cpanm Mojolicious::Lite Mojolicious::Routes::Pattern Mojoliciuos::Plugin::RenderFile List::MoreUtils + + - name: Start Sakisafe + run: | + morbo -l http://*:3000 http/sakisafe.pl + + - name: Test Sakisafe + run: | + curl --retry 10 --retry-delay 5 --retry-connrefused http://localhost:3000 + + # LOLOLOLOLOLOLOLO + curl -X POST -F "file=@/etc/passwd" http://localhost:3000