diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9db21b5..c2b316d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,6 +25,21 @@ jobs: - name: Run linter run: uv run ruff check . + - name: Check Postmark credentials + env: + POSTMARK_API_TOKEN: ${{ secrets.POSTMARK_API_TOKEN }} + SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }} + run: | + if [ -z "$POSTMARK_API_TOKEN" ]; then + echo "Error: POSTMARK_API_TOKEN is not set in repository secrets" + exit 1 + fi + if [ -z "$SENDER_EMAIL" ]; then + echo "Error: SENDER_EMAIL is not set in repository secrets" + exit 1 + fi + echo "Postmark credentials are properly configured" + - name: Run tests env: POSTMARK_API_TOKEN: ${{ secrets.POSTMARK_API_TOKEN }}