diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml new file mode 100644 index 0000000..2eae3ca --- /dev/null +++ b/.github/workflows/phpunit.yml @@ -0,0 +1,19 @@ +name: PHP Tests + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install PHP and PHPUnit + run: | + sudo apt-get update + sudo apt-get install -y php phpunit + - name: Run PHPUnit + run: phpunit \ No newline at end of file diff --git a/README.md b/README.md index 221b54e..29272c0 100755 --- a/README.md +++ b/README.md @@ -97,7 +97,23 @@ Screenshots can enhance your article by visually representing instructions. Ensu - Crop to focus on relevant elements. - Remove unnecessary details. +## Configuration +The contact form uses the `SITE_OWNERS_EMAIL` environment variable to determine +where submissions are sent. If the variable is not set, emails default to +`user@website.com`. + +### Setting the variable locally + +```bash +export SITE_OWNERS_EMAIL=you@example.com +``` + +### Hosting platforms + +Most hosting providers allow environment variables to be configured from their +dashboard. Define `SITE_OWNERS_EMAIL` with your preferred address to receive +emails from the contact form. ## FAQs ### How do I get involved? diff --git a/inc/sendEmail.php b/inc/sendEmail.php index 762509b..a2b55b9 100755 --- a/inc/sendEmail.php +++ b/inc/sendEmail.php @@ -1,8 +1,7 @@ This is what the folks from other program
+
Sanskriti Harmukh (GCE)
@@ -409,7 +409,7 @@
+
Animesh Pathak (Gold MLSA)
diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..afd84a2 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,8 @@ + +