diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index f51b9e2..abe7dfb 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -1,11 +1,29 @@ -on: [push] +on: [pull_request] jobs: build: - env: - RUNNER_TOOL_CACHE: /toolcache runs-on: docker + container: + image: git.php.fail/lubiana/container/php:ci steps: - - run: ls -l / - - run: ls -l /opt - - run: echo 'lol' >> /opt/hostedtoolcache/omg.txt - - run: cat /opt/hostedtoolcache/omg.txt + - name: Manually checkout + env: + REPO: '${{ github.repository }}' + TOKEN: '${{ secrets.GITHUB_TOKEN }}' + GIT_SERVER: 'hannover.ccc.de/gitlab' + run: | + git clone --branch $GITHUB_HEAD_REF https://${TOKEN}@${GIT_SERVER}/${REPO}.git . + git fetch + git checkout $GITHUB_HEAD_REF + - name: lol + run: | + ls -l + pwd + output=$(cat output.txt) + echo "" >> output.txt + jq -n --arg msg "\`\`\`$(cat output.txt)`\`\`" '{"body": $msg}' > /tmp/git-msg + echo $output + curl -X POST \ + -H "Authorization: token ${GITHUB_TOKEN}" \ + -H "Content-Type: application/json" \ + -d @/tmp/git-msg \ + "${{ env.GITHUB_SERVER_URL }}/api/v1/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..723ef36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..32023c7 --- /dev/null +++ b/output.txt @@ -0,0 +1,27 @@ +Escaped mutants: +================ +1) /workspace/lubiana/futtern/src/Controller/FoodVendorController.php:39 [M] ArrayItemRemoval +@@ @@ + $entityManager->flush(); + return $this->redirectToRoute('app_food_vendor_index', [], Response::HTTP_SEE_OTHER); + } +- return $this->render('food_vendor/new.html.twig', ['food_vendor' => $foodVendor, 'form' => $form]); ++ return $this->render('food_vendor/new.html.twig', ['form' => $form]); + } + #[Route('/{id}', name: 'app_food_vendor_show', methods: ['GET'])] + public function show(FoodVendor $foodVendor): Response +Timed Out mutants: +================== +Skipped mutants: +================ +Not Covered mutants: +==================== +Total: 315 +Killed: 314 +Errored: 0 +Syntax Errors: 0 +Escaped: 1 +Timed Out: 0 +Skipped: 0 +Ignored: 0 +Not Covered: 0 \ No newline at end of file